To import document library/list you have exported from the SharePoint content database, run the appropriate PowerShell cmdlet locally on the SharePoint server, as described below:
When using PowerShell snap-in, run the following command:
Add-PsSnapin Microsoft.SharePoint.PowerShell Import-SPWeb -Identity "http://<web_server_name>/sites/<destination_site>" -Path "C:\<export_folder>" -NoFileCompression –IncludeUserSecurity |
When using SharePoint Management Shell, run the following command:
Import-SPWeb -Identity "http://<web_server_name>/sites/<destination_site>" -Path "C:\<export_folder>" -NoFileCompression –IncludeUserSecurity |
where:
- <web_server_name> — destination web server;
- <destination_site> — destination web site;
- <export_folder> — source folder containing exported library/list content.
To get extended Help on the Import–SPWeb command, run the following PowerShell cmdlet:
Get-Help Import-SPWeb -full |
Related Topic
Exporting Document Libraries and Lists