How to Create a Subsite based on Site template ID
New-SPWeb http://yoursiteurl/sites/spdemos/DocLibTest -Template “GENERALPROJECTTEMP#1”
Add-PSSnapin Microsoft.Sharepoint.Powershell $web = get-spweb https://sharepoint $template = $web.GetAvailableWebTemplates(1033) | Where-Object {$_.Title -eq “”}
$newweb = New-SPWeb -Url “https://sharepoint/newsubsite”
$newweb.ApplyWebTemplate($template.Name)
Add-PSSnapin Microsoft.Sharepoint.Powershell $web = get-spweb https://sharepoint $template = $web.GetAvailableWebTemplates(1033) | Where-Object {$_.Title -eq “
Comments
Post a Comment