pnp / script-samples

A sample gallery of scripts to manage all things Microsoft 365.
https://pnp.github.io/script-samples/
MIT License
220 stars 136 forks source link

Added 3 time-based SharePoint and OneDrive reporting scripts #684

Closed nbrattoli closed 7 months ago

nbrattoli commented 7 months ago

I added a folder called "spo-time-based file reports" that contains 3 related scripts:

1.OneDrive Scan

  1. SP Site Scan
  2. CustomSPSite Scan

These scripts all use PnP to get items older than the date filter currently set at 4 years since last modified. Script one will get every file in a given OneDrive, 2 gets every file in every library and places the reports at the root of each library, and 3 allows you to customize what gets scanned and where the report goes.

This is one of many scripts I hope to upload that I use on a regular basis as an M365 consultant.

pkbullock commented 7 months ago

Hi @nbrattoli - thank you for this triple set of scripts, very cool - these will be live shortly 🎉😁

nbrattoli commented 7 months ago

Appreciate the approval! I have a lot more where this came from. Hopefully I can get them in the right format and uploaded in the next couple days :)