https://github.com/zerg00s/spo-documents-report
Produces a CSV report that lists all documents on a SharePoint Online site
https://github.com/zerg00s/spo-documents-report
administration files pnp powershell reporting sharepoint sharepointonline
Last synced: 12 months ago
JSON representation
Produces a CSV report that lists all documents on a SharePoint Online site
- Host: GitHub
- URL: https://github.com/zerg00s/spo-documents-report
- Owner: Zerg00s
- License: mit
- Created: 2022-04-10T23:46:24.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-03T13:44:01.000Z (about 4 years ago)
- Last Synced: 2025-03-16T21:36:41.361Z (over 1 year ago)
- Topics: administration, files, pnp, powershell, reporting, sharepoint, sharepointonline
- Language: PowerShell
- Homepage:
- Size: 13.3 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# SPO Documents Report
SPO Documents Report is a script that generates a CSV file that lists all files in a target site.
## Limitations
- The report does not include subsites.
- The report can only targe one site at a time.
## Prepare workstation
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.
- Launch a new PowerShell window:

- Run the following PowerShell command to allow running scripts:
```
Set-ExecutionPolicy -Scope CurrentUser Unrestricted
```
Install Pnp.PowerShell:
```
Install-module Pnp.PowerShell -Scope CurrentUser
```
- Download the [latest release](https://github.com/Zerg00s/spo-documents-report/releases).
- 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:

## Can I run the script multiple times?
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.