Create Site Collection by using Power Shell

Leave a Comment
Hi All,

In following post we will see how to create Site Collection by using Power shell.

Step 1:

Open Management Shell as an Administrator

Step 2:

Execute the below script.

Syntax:

New-SPSite "SiteCollectionUrl" -OwnerAlias "SiteCollectionOwner" -Template "TemplateID" -Name "SiteCollectionName"

Example:

New-SPSite "http://ingnssp:1947" -OwnerAlias "dns\admin" -Template "STS#0" -Name "SharePoint Waves"

Note: Change the values as per your farm. In my example i have used Team Site Template.(STS#0)

Related Post

0 comments:

Post a Comment