Importing Microsoft SharePoint Data
To import document library or list, use either of the following PowerShell cmdlets:
- For PowerShell snap-in, use the following command.
Add-PsSnapin Microsoft.SharePoint.PowerShell Import-SPWeb -Identity "http://<web_server_name>/sites/<destination_site>" -Path "C:\<export_folder>" -NoFileCompression –IncludeUserSecurity |
- For SharePoint Management Shell, use 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, use the following command.