Please run the following script on the SharePoint Management Shell as an admin.
21477-script-xlsx1.txt
Thanks,
Echo Du
----------
If the response is helpful, please click "Accept Answer" and upvote it
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
List of files in excel from entire site collection, Please help in script which should export all the files in excel from site collection
Please run the following script on the SharePoint Management Shell as an admin.
21477-script-xlsx1.txt
Thanks,
Echo Du
----------
If the response is helpful, please click "Accept Answer" and upvote it
here is the script which generates all files inventory report for Sharepoint site collection using CSOM (i.e. should work both for Sharepoint on-prem and online):
SharePoint Online: Get All Documents Inventory in a Site using PowerShell
Note that if you work with on-prem then depending on your version of Sharepoint you may need to change path to CSOM dlls in the beginning of the script. E.g. if you have Sharepoint 2013 change path to these:
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
(i.e. change 16 to 15 in the path).