문제

on sharepoint 2013 on-prem, I would like to migrate a a few lists in the same site collection to a different subsite using powershell. I tried the following commands:

Export-SPWeb "SiteURL" -ItemUrl "ItemUrl" -Path "PathToExportFile" -IncludeVersions All -IncludeUserSecurity

Import-SPWeb "NewSiteURL" -Path "PathToExportFile"

The list was migrated with no issues, it also kept versioning, but I didn't manage to maintain metadata such us Modified, Created, Modified by etc.

Is it possible to migrate the list using the above method and at the same time maintaining the metadata of the lists?

도움이 되었습니까?

해결책

In the import command, I had to append -IncludeUserSecurity:

Import-SPWeb "NewSiteURL" -Path "PathToExportFile" -IncludeUserSecurity
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top