Use SharePoint Management PowerShell to complete SharePoint operations

Source: Internet
Author: User

 

You can use SharePoint Management PowerShell to perform operations on SharePoint.

Here we use the Import and Export of site as an example to briefly introduce how to use PowerShell to complete the above operations. We know that we have two options when performing backup and restore operations on the Site. One is to directly use the Backup and restore commands to perform backup and restore operations on the entire site collection, however, when we only back up and restore a site or a list, Import and Export become our choice.

First, use the source site as an export. In the PowerShell window, enter

The following is a code snippet:
Export-SPWeb http: // aa/targetsite url-Path "// 192.168.1.100/aa/moss2010.cmp"

 

Import-SPWeb http: // aa1/-path C: \ aa \ moss2010.cmp

 

Complete site import.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.