list of files in excel from entire site collection

sns 9,236 Reputation points
2020-08-28T05:13:57.54+00:00

List of files in excel from entire site collection, Please help in script which should export all the files in excel from site collection

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,963 questions
0 comments No comments
{count} votes

Accepted answer
  1. Echo Du_MSFT 17,181 Reputation points
    2020-08-31T08:40:17.507+00:00

    @sns

    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


1 additional answer

Sort by: Most helpful
  1. sadomovalex 3,631 Reputation points
    2020-08-31T15:28:26.417+00:00

    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).

    Read more: https://www.sharepointdiary.com/2018/03/sharepoint-online-get-all-documents-using-powershell.html#ixzz6Wi64VzT2

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.