Create a report on all file versions in the library

Powershell script that generates a report on available file versions in one SharePoint Online library. It iterates through folders and subfolders in order to retrieve all items. Requires SharePoint Online SDK.

 
 
 
 
 
5 Star
(2)
1,125 times
Add to favorites
Office 365
2/26/2015
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • OneDrive?
    3 Posts | Last post August 14, 2018
    • Could you please let me know if you can do this for OneDrive?
      When running it says the following "A parameter cannot be found that matches parameter name 'password'
      And also "A parameter cannot be found that matches parameter name 'ListTitle'.
      
      Thanks
    • Hi Joey MCAT,
      
      Thank you for checking out the script.  I will run some tests against ODB and keep you updated here.
    • Hi Joey,
      
      Here's an adjusted version for OneDrive for Business. I'd appreciate your feedback:
      https://gallery.technet.microsoft.com/scriptcenter/Create-a-report-on-all-be001e5d
  • For All sites
    2 Posts | Last post January 09, 2018
    • Could you please let me know, if we can run on all site in the farm? 
    • Hi Mast,
      
      Yes, you can do that but you'd need to modify the script:
      
      1) The authentication is set to SharePoint Online so please modify it to authenticate to on premise environment. This article might be helpful:
      https://bramdejager.wordpress.com/2013/08/02/using-csom-and-powershell-to-query-sharepoint-online-or-on-premise/
      
      2) You need to loop through all the sites
      Retrieve all the sites you are interested in, e.g. with Get-SPSite cmdlet and put the following line inside the loop:
      Get-SPOFolderFiles -Username $username -Url $Url -password $AdminPassword -ListTitle $ListTitle -CSVPath $csvPath -CSVPath2 $csvPath2