Download All SharePoint Online Files

You can use this script to download all files in a SharePoint site or even a tenant.  This will get everything, including the layout files and such if you desire.  It relies on the Get-PnpFile cmdlet, so if you don't have the SharePointPnPOnline cmdlets, it will download and in

336 times
Add to favorites
Office 365
E-mail Twitter Digg Facebook
  • How to replace files with new versions?
    2 Posts | Last post January 24, 2020
    • Hi Aaron, thank you very much for the script! It is the only one I could find that downloads all files from a given Site Collection for SPO. I am trying to use this script daily, and I want any updated files to replace the previous version, but it doesn't seem to be doing that. Is there anywhere in the script you can point me to try and change that behavior?
    • Nevermind, I figured out I was able to use the -Force switch on Get-PNPFile. Thanks again for the great script.