Showing posts with label Create new Site Collection. Show all posts
Showing posts with label Create new Site Collection. Show all posts

Tuesday, March 12, 2013

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



JavaScript Related Questions & Answers

1.What is JavaScript? JavaScript is a client-side as well as server side scripting language that can be inserted into HTML pages an...