question

AaseNomad avatar image
0 Votes"
AaseNomad asked RaytheonXie-MSFT commented

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

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.

office-sharepoint-onlinewindows-server-powershellsharepoint-devoffice-sharepoint-server-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RaytheonXie-MSFT avatar image
0 Votes"
RaytheonXie-MSFT answered RaytheonXie-MSFT commented

Hi @AaseNomad ,
As far as I know, Microsoft does not provide a method that moving files from SharePoint Online to on-premises environment. You will need to use a 3rd party tool such as ShareGate.

While Microsoft supports and encourages open-source software development, it does not provide technical support for the softwares from third parties, nor does it guarantee that the software will work as described.



If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AaseNomad ,
Would you tell me whether your issue has been resolved or have any update?
I am looking forward to your reply.

Have a nice day!

Thanks,
Raytheon Xie

0 Votes 0 ·

Hi @AaseNomad ,
would you please provide us with an update on the status of your issue?

0 Votes 0 ·
sadomovalex avatar image
0 Votes"
sadomovalex answered

if this is one time operation then you may try this: open parent doclib in SPO in Explorer and copy it manually to local file system (like in regular Windows Explorer with copy/paste) or use Sync command to do the same: View SharePoint files in File Explorer. After that open target doclib in SP onprem also in Windows Explorer and paste folder there from your local file system via WebDav.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.