Share via

SharePoint copy folder/docs but selective copy...

Anonymous
2024-06-05T15:13:51+00:00

We have a large SharePoint document folder, and want t replicate some folders to a new site, however the folder structure for example is

Parent Folder A

Sub Folder 1

Files

Sub Folder 2

Files

Sub Folder 3

Files

Parent Folder B

Sub Folder 1

Files

Sub Folder 2

Files

Sub Folder 3

Files

We want to replicate this to the new site, but only want the following folder/and files (The sub folder names are consistent between all parent folders)

Parent Folder A

Sub Folder 3

Files

Parent Folder B

Sub Folder 3

Files

Is their a way to do this type of recursive copy, with some filtering on folder name via PowerShell?

I have found some move scripts that could do this with a bit of tweaking but wondered it there is a safe way to do this, without having to resort to someone recreating it/or copying the entire lot over/ then deleting the unwanted sub folders etc...

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-06-05T22:08:04+00:00

    Dear Dave Amos,

    Thank you for reaching out to the Microsoft community.

    We'd love to help, but considering we mainly focus on general and built-in queries in SharePoint Online, we may have limited resources to help you with your requirements.

    At the same time, considering we have a dedicated channel SharePoint Development - Microsoft Q&A, for you to be assisted properly, we sincerely recommend you go to that community and post a new thread, members and engineers over there will focus on the specific situation on your side and share specific suggestions. We are sure that our experts from that team can address your query effectively and accurately.

    Thanks for your understanding and cooperation! Hope you keep safe and healthy always.

    Sincerely,

    Sean | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments