Importing Microsoft SharePoint Data
To import document library or list, use one 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 website.
- <export_folder> — source folder containing exported library or list content.
To get extended help on the Import–SPWeb command, use the following command:
Get-Help Import-SPWeb -full |