SPO Documents Report is a script that generates a CSV file that lists all files in a target site.
- The report does not include subsites.
- The report can only targe one site at a time.
Before you begin, make sure you are running this script on a modern machine with Windows 10 or later. This script is not tested against older operating systems.
Set-ExecutionPolicy -Scope CurrentUser Unrestricted
Install Pnp.PowerShell:
Install-module Pnp.PowerShell -Scope CurrentUser
- Download the latest release.
- Unzip the folder and confirm the contents.
- Run
Gen-DocumentsReport.bat
file by double-clicking it:
- Provide a SharePoint site URL that will be scanned
- Click OK.
- Login to the SharePoint Online Site
- After the script is done, a CSV file will be created in the script folder:
You can run the script multiple times. Every time you run it, a new CSV file will be created with a name of a site you target.