I am facing problems while trying to move a Document Library from one Subsite to another on a SharePoint 2013 on premise installation.
I want to "move" a document library with powershell from one subsite to another and I also want to keep the Version history of all files.
I found the following script: https://gallery.technet.microsoft.com/office/Copy-all-SharePoint-Files-0999c53f
But the skript only copies the files and so they get a new version history. Is there a way to copy the history of each file too?
best regards Alex
Export/Import-SPWeb "http://sharepointurl/subsite1" -ItemUrl "lists/MyList" -Path "C:\" -IncludeVersions All -IncludeUserSecurity"
? -IncludeVersions should keep all versions of files, and IncludeUserSecurity keep permissions on list/files