Wednesday, 12 December 2018

Sharepoint 2013: Export-Import Method using PowerShell.


Add-PSSnapin microsoft.sharepoint.powershell

Export-SPWeb -Identity "http://sharepoint-u.com/sites/SiteCollectionName/Subsite" -ItemUrl "/sites/SiteCollection/Subsite/LibraryName/" -path "E:\temp\LibraryName.cmp" -IncludeUserSecurity -IncludeVersions ALL

Import-SPWeb -Identity "http://sharepoint2013.ntrs.com/sites/SiteCollection/LibraryName" -Path "E:\temp\LibraryName.cmp"