
Hi @Sam Blowers,
Thank you for reaching out to the Microsoft Q&A forum and for providing detailed information about your request.
It appears you're looking for a PnP PowerShell script to generate a comprehensive report on all document libraries within a SharePoint Online site collection. This includes advanced details such as folder-level file counts and audit metadata. While we’re glad to offer general guidance, the level of complexity involved in your scenario, especially around deep analysis of SharePoint structures and customized reporting, goes beyond the scope of what we can fully support here in the forum.
As moderators of the Microsoft Q&A forum, our primary role is to assist with:
- General usage of PnP PowerShell and SharePoint Online features
- Clarifying official documentation and command syntax
- Providing examples for common tasks and troubleshooting basic issues
Therefore, for more advanced needs such as environment-specific scripting, performance optimization, or detailed metadata extraction, I recommend creating a support ticket with Microsoft to working directly with our Microsoft SharePoint support engineers. These experts have access to diagnostic tools and deeper insights into your tenant configuration, allowing them to provide tailored solutions that align with your organization’s requirements.
We understand that every SharePoint environment is unique and ensuring your reporting needs are met accurately and efficiently is important. That’s why engaging with our dedicated support team is the best path forward for scenarios that require deeper technical involvement.
To request personalized assistance, please follow these steps to create a support ticket:
- Go to the Microsoft 365 Admin Center
- Sign in using your administrator account
- Navigate to Help & Support
- Enter a detailed description of your request (e.g., assistance with SharePoint site provisioning, Planner integration, or advanced reporting using PnP PowerShell)
- Select Contact support to submit your ticket
Once your ticket is submitted, feel free to share the case number here. I’ll be happy to follow up or help coordinate with the support team to ensure your request is addressed promptly.
We truly appreciate your engagement in the forum and look forward to helping you with any general guidance you may need. For deeper technical scenarios, our support engineers are well-equipped to assist you further.
Thank you again for your understanding and cooperation. I appreciate your time and initiative in following these steps, and I’m here if you need further guidance.
Wishing you a great day ahead.
As other users will also search information in this community, kindly mark it as an answer, your valuable vote will definitely also help other users who have similar queries easily to find the correct channel and useful information more quickly.
I appreciate your kind words.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.