Skip to main content


Showing posts with the label Create new Site Collection

PowerShell Command to create new site collection

Create a Content Database
New-SPContentDatabase -Name IC_Content_DB -WebApplication http://sharepoint-demo

Note : “IC_Content_DB” :- Name of new content database for new Site Collection “http://sharepoint-demo” :-  Name of Web Application where you want to create new site collection with the url http://sharepoint-demo/IC
More information about “New-SPContentDatabase”

Now create a site collection
$template = Get-SPWebTemplate "STS#0" New-SPSite -Url "http://sharepoint-demo/IC" -OwnerAlias "sharepointdemo\gaurav" –ContentDatabase IC_Content_DB -Template $template
More information about “New-SPSite”