Share via


How to Import SharePoint 2010 Commerce Content Package

This topic provides guidance on how to use Microsoft Windows PowerShell to import a Microsoft SharePoint 2010 site, list, or document library.

You can import SharePoint 2010 updates into an existing application.

Hh567754.alert_caution(en-us,CS.95).gifImportant Note:

You must use Windows PowerShell to import a SharePoint 2010 site. You cannot use SharePoint Central Admin to import a SharePoint 2010 content package.

For more information about importing a list, document library, or site in SharePoint 2010, refer to your SharePoint 2010 user documentation.

Prerequisites

  • See Using Windows PowerShell for SharePoint 2010 Commerce Deployment for a list of variables and sample values that may be used in sample scripts provided in this topic.

  • Your SharePoint 2010 content package is available locally on the server where it must be deployed.

  • Determine whether your site updates contain customizations that require Feature activation in SharePoint 2010. If so, make sure to copy the content of the Web.config file for your application before you proceed with the following procedure.

To import a SharePoint content package

  1. Use the following Windows PowerShell command to import a SharePoint 2010 content package. In the following example, the package name is SiteContent.cab.

    Import-SPWeb -Identity $WebSiteUrl -Path .\SiteContent.cab -Force -Verbose.
    

    For more information about importing a list, document library, or site in SharePoint 2010, see https://go.microsoft.com/fwlink/?LinkId=204419.

  2. Caution   Deactivating and reactivating the Commerce Server Feature in SharePoint 2010 results in the loss of manually applied settings in the Web.config file. If your site updates contain customizations requiring Features activation, copy the content of the Web.config file so you can paste it back in after you have reactivated the Commerce Feature in SharePoint 2010.

    As required based on the customizations contained in your content package, proceed with Feature activation in SharePoint 2010.

  3. Restore the content of the application Web.config file as required.

See Also

Other Resources

Deploying Updates to an Existing SharePoint Commerce Site