Copy files from one subsite library to main site library (SP On-premise)

Charlie Martharper 125 Reputation points
2025-11-14T09:30:15.47+00:00

Hi,

I am creating a SharePoint On-premise with a main public site which everyone can see the files and differents subsites with more private accesses / permissions.

The thing is, I was wanting to copy some of the files from the private to the public one with the same metadata (columns) but I only see the folders of the subsite. Like I can't change the site I want to go.

User's image

Is there a way to be possible to send them from the subsite to the main site with all the columns?

How should I do it? It's urgent to know that information.

Also I was thinking of creating a column type yes/no that when changes from no to yes, it sends them automatically. But for that maybe I need Power Automate.

Let me know how should I proceed!

Thank you so much.

Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

Answer accepted by question author
  1. Jayden-P 12,705 Reputation points Microsoft External Staff Moderator
    2025-11-14T11:03:37.8266667+00:00

    Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.

    Hi @Martin Vea, Carles

    Thank you for posting your question in the Microsoft Q&A forum.

    Based on my research, Move to/ Copy to functions in SharePoint server have some limitations compares to SharePoint Online.

    I found this discussion that might be helpful.

    SharePoint (on-premises) Copy/Move To Another Library Or Site - Microsoft Q&A

    How to move documents from subsite library to main site library SharePoint 2019 On prem - SharePoin…

    Note: Microsoft is providing this information as a convenience to you. These sites are not controlled by Microsoft, and Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please ensure that you fully understand the risks before using any suggestions from the above link.

    You cannot move a library from one to another site via the UI.

    So please take a look at SharePointPnPPowerShell2019, using Copy-PnPFile.

    You can install the module via PowerShell Gallery | SharePointPnPPowerShell2019 3.6.1902.2

    Install-Module -Name SharePointPnPPowerShell2019 -RequiredVersion 3.6.1902.2
    
    

    powershell/documentation/Copy-PnPFile.md at dev · pnp/powershell · GitHub

    I hope this information helps.


    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.