Same document needs uploading to multi folders in Sharepoint.

Rachael Cherry 1 Reputation point
2022-11-10T12:16:18.483+00:00

Hi - Can any one help? We have 400+ individual employee folders on SharePoint. I need to add the same document in each folder but struggling to do this bulk instead off individually .Thanks

Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2022-11-11T03:10:36.48+00:00

    Hi @Rachael Cherry ,
    You can upload the same document in multiple folders using the PnP Powershell below.
    PnP Powershell code: upload-file.txt
    Here are steps:

    1. Enter all individual employee folders URL in a .csv file.
    2. Form URL as table(Title is "DestinationPath")
      259316-image.png
    3. Replace code: $SiteURL, $SourceFilePath, $DestinationPath
      259335-image.png

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.