Sharepoint
-
Powershell Script to Copy Files from a Microsoft 365 Sharepoint location to a local drive
I need to move a large folder of images from Sharepoint Online to a local server for a customer as the online location is not working for their business needs. I tried to use the SharePoint download feature but the zip file reports that it is invalid. I decided to look into PowerShell and see if that could be used to export the files and folders. Here is the code I ended up with. Feel free to copy and paste the following into Powershell, update the variables and save it. This script is provided as an example and I am not responsible for any problems you may get or any…