Importing a Site

Before you can import your web, you need to create the site. To create a site using the SharePoint 2010 Management Shell, perform the following steps:

Execute the following command from within the PowerShell Shell:

New-SPWeb –URL http://server/sites/IT/Blog/ -Verbose

Verbose parameter has been used to see how this cmdlet executes and creates a new site, as shown in Figure 10.20. After the site has been created, it can be overwritten with the backup using the following steps:

Figure 10.20. Creating a new site using New-SPWeb commandlet.

image

To import a site using the SharePoint 2010 Management Shell, execute the following command, ...

Get Microsoft SharePoint 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.