// you’re reading...

SharePoint

Using STSADM.EXE to Create Empty Site Collection

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

    • 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...
    • sara: Try this too, Delete item from SharePoint List and more
    • jayashri kanungo: The video is slow. Usually when you run it for first time, it takes time but for subsequent time it...
    • Robert Woodlock: Thank you, sorry to ask, but would i add code to have this function automated.. Basically I was to...