// you’re reading...

SharePoint

Using STSADM.EXE to Create Empty Site Collection

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

There are situations when we want to create empty site collection, like when your content deployment job is failing due to conflicting content. In these cases STSADM.EXE comes handy.

STSADM.EXE is the only means to create a completely empty site collection.

Syntax
STSADM.EXE -o createsite -url <url-to-site-collection> -ownerlogin domain\user -owneremail <email-address>

Example
STSADM.EXE -o createsite -url http://servername:9009/sites/EmptySiteCollectionName -ownerlogin mydomain\praveen -owneremail abc@xyz.com

Remember, using the “Blank Site” template does NOT creates an completely empty site collection. The site collection created by “Blank Site” template create some content for default website.
You can see the difference if you create a site collection using both methods and then inspect the content of the created sites using SharePoint designer.

You might be interested in:
  • SharePoint 2007 Test Data Population Tool
  • Review of: SharePoint Content Deployment Wizard
  • List of 10 useful SharePoint Tools from CodePlex
  • SHAREPOINT DESIGNER 2007 IS NOW FREE!
  • Set the SharePoint Welcome Page through code
  • Discussion

    No comments for “Using STSADM.EXE to Create Empty Site Collection”

    Post a comment

    Spam Protection by WP-SpamFree

      Locations of visitors to this page
    View Praveen Modi's profile on LinkedIn

    Recent Comments

    • D Baldassarri: Hello Praveen I apologize if this is a reduntant question. I have a List, when the list is created I...
    • Tanuj Kumar: Check this helpful link…. http://mindstick.com/Articles/ 19b8cf75-6d2e-4504-8840-718...
    • sanjeev: Hello i want to upadate all the items of a column.I need to apply one formula for upadating the...
    • pankaj: Thanks a lot.Though i m already done with it.will try this too.
    • Sandeep: Here’s correct way to do it http://snahta.blogspot.com/201 1/09/deleting-all-items-from-l ists.html