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






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



Comments

Popular Posts

SharePoint Interview Questions and Answers

Download Infopath Form Templates

How to get current logged user information using JavaScript ?

Steps to set Form based authentication (FBA) for SharePoint 2010

SharePoint Interview Questions and Answers II

Get List Items - JavaScript

Change Language for current user with JSOM in SharePoint Online

Cross Site List Rollup Web Part for SharePoint 2010

Hide Recently Modified Items

SharePoint 2010 CSS Chart