Wednesday, March 2, 2016

How to create site collections using SharePoint PowerShell 2013


Declare variable for template:

$template = Get-SPWebTemplate "STS#0"



New-SPSite -Name "VSPServer Intranet" -Url "http://peakfinders" –HostHeaderWebApplication $hnscWebApp -Template $template -OwnerAlias "Peakfinder\admin"

No comments:

Post a Comment