Friday, March 29, 2024

Convert a Subweb to a Site Collection

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).

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Stay Connected

35FollowersFollow
- Advertisement -

Latest Articles