How to use powershell to transfer a sub folder from one list into another list on a different sharepoint site?

Tevon2.0 1,106 Reputation points
2023-07-27T16:07:12.88+00:00

Using SharePoint Server 2019 and SharePoint Management Powershell in admin mode

Could someone please assist with a script to move a subfolder from site "A" over to a sub folder in a list on another SharePoint communications site. Screen shots are definitely appreciated or describing what part of the script is replaced with my own information

Site A "http://tkportal"

Subfolder link "xyz"

Site B "http://tkempctr"

Microsoft 365 and Office SharePoint Server For business
Microsoft 365 and Office SharePoint Server Development
Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2023-07-28T02:40:05.17+00:00

    Hi @Tevon2.0,

    For now, in SP2019 the copy to action does not support moving folders between sites. We can only move the folder between libraries in the same site. Please refer to the following document

    https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-server/ms461652(v%3Doffice.15)

    I feel regretful to inform you that it turns out to be a by-design one. And I noticed that some end users have also proposed the same request, it is highly recommended that you can vote this ticket. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.


    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.


0 additional answers

Sort by: Most helpful

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.