Wednesday, September 21, 2011

Create SiteCollection

$Title = "My Site Title"

$webappurl = "http://hostheader"
$pri_owner = "domain\user1"
$sec_owner = "domain\user2"



New-SPSite $webappurl -OwnerAlias $pri_owner -SecondaryOwnerAlias $sec_owner -Name $title -Template "STS#0"

No comments:

Post a Comment