Thursday 15 November 2012

Import\ Export SharePoint Subsite Using Powershell

Import\ Export  SharePoint Subsite Using Powershell



Run PowerShell as Administrator.

Export Subsite:

export-spweb -identity http://mysite/mysubsite  -path D:\subsitebackup\mysubsitebackup.cmp

 Import Subsite:

import-spweb -identity http://mysite/mysubsite  -path D:\subsitebackup\mysubsitebackup.cmp

Note:

To use import or export subsite command in power shall both source and destination template should be same.



2 comments:

  1. Iam trying to export a subsite and import as a sitecollection, but export is not copying the master pages, is there any way to copy the master pages also.

    Thanks in advance.

    ReplyDelete
  2. Thanks for sharing useful information with us about Import\ Export Share. Your info will definitely help the readers and please keep sharing some more info with us.

    Home Automation Vancouver | vancouver security | Best Security Vancouver

    ReplyDelete