How to copy a folder from SP online to SP onprem using PowerShell

Occasional Contributor

I have a folder call "General" in my SharePoint Online site. It's about 16GB and a lot of nested folders inside it. I wanted to copy that folder(including all the nested folders) to a different SharePoint Onprem site while it preserved all the data such as created date, modified date..etc using PowerShell so just wondering if anybody know where I might be able to find a PowerShell script that does that?.

Any suggestion will be really appreciated.

0 Replies