// 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 Plugin

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

    Recent Comments

    • fred: The above mentioned tips are helpful. However, by the use of a third-party caching solution for SharePoint you...
    • Ramiz Uddin: Praveen, I would need your help. I’m new on sharepoint and very much confused with its deployment...
    • Maarten: Hi! I tried your code, it works great. However, I don’t see the created folder in explorer view. How...
    • Praveen Modi: Juan, seems like it should work but I haven’t tried it. I will give it a try and will update the...
    • Juan Larios: couldn’t you just do: SPFolderCollection collection = site.Lists["Site Collection...