Create a New Site Collection in SharePoint 2010 using PowerShell

January 3, 2012 — Leave a comment

How to create a top level site collection in SharePoint using PowerShell?
To add new site collection use the following cmdlets

New-SPSite –url <URL> -name <site collection name> -owneralias <site collection admin>
-template <template name>

Sample PowerShell to create new site collection in SharePoint 2010

New-SPSite –url http://virtualizesharepoint -name Home -owneralias vSharePoint\SpAdmin
-template STS#0

If you want to know the list of templates :

No Comments

Be the first to start the conversation!

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s