Sometimes it is needed to move a Sharepoint site to a new Sharepoint site collection. Doing that via Powershell is quite easy.

In this post, we’ll use the STSADM.exe method, since it is the fastest one. STSADM.exe is located in the HIVE folder of SharePoint 2010 (usually “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\”, and there in the “BIN” folder).

But if you use the Sharepoint powershell then there is no need to browse the HIVE folder.

1 .) Export the site you wish to move via:

stsadm.exe -o export -url http://myserver/mysubweb -filename c:\mysubweb.bak -includeusersecurity -versions 4

2.) create a new site collection (with the same template used in the site you wish to move) via the central administration page

3.) Import the site from the backup you created via:

stsadm.exe -o import -url http://myserver/sites/mynewsitecollection -filename c:\mysubweb.bak -includeusersecurity

4.) Compare the content and delete the old site (if needed).

Leave your comments

Post comment as a guest

0

Comments

    • No comments found