Skip to content

Add SharePoint Online site inventory report sample - #974

Open
a-villarruel wants to merge 2 commits into
pnp:mainfrom
a-villarruel:main
Open

Add SharePoint Online site inventory report sample#974
a-villarruel wants to merge 2 commits into
pnp:mainfrom
a-villarruel:main

Conversation

@a-villarruel

Copy link
Copy Markdown

Summary

This pull request adds a new PnP PowerShell sample to generate a SharePoint Online site inventory report.

The script connects to a SharePoint Online site and exports key inventory information to a CSV file, including:

  • Site title
  • Site URL
  • Site template
  • Site creation date
  • Total number of lists
  • Number of document libraries
  • Report generation date

The generated report can help administrators and project teams with SharePoint documentation, governance activities, and environment assessments.

Scenario

SharePoint administrators and project teams often need a quick overview of existing sites for documentation or governance purposes.

This sample provides a lightweight way to collect basic site information using PnP PowerShell.

Implementation

The sample includes:

  • A PowerShell script using PnP PowerShell
  • README documentation
  • Example output screenshot
  • Sample metadata file for gallery publishing

Testing

The script was tested using PnP PowerShell and successfully generated the CSV inventory report.

Checklist

  • Script follows repository folder naming conventions
  • README.md included
  • Example screenshot included
  • No tenant-specific information included
  • No credentials or sensitive information included

@pkbullock

Copy link
Copy Markdown
Member

Hi @a-villarruel in the README.md there is two references sections that are the same, and can you copy the contents of the ps1 file into the Readme as well, like the other samples. is that OK?

Thank you for your contribution.

@pkbullock pkbullock added the feedback-requested Request for further information or clarification before taking action on this item. label Aug 17, 2026
Update README: remove duplicate references and add PowerShell script for the SharePoint site inventory report script.
@a-villarruel

Copy link
Copy Markdown
Author

Hi @pkbullock ,

Thanks for reviewing the submission and for the feedback.

I've removed the duplicated References section and added the contents of the .ps1 file to the README.md to align it with the other samples.

Please let me know if there's anything else that should be updated.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feedback-requested Request for further information or clarification before taking action on this item.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants