Posts

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ā€