PowerShell

Powershell – Get Site Template ID

The following PowerShell script will return Template Name and the Internal ID.

$url = “http://sp2013/”
$site= new-Object Microsoft.SharePoint.SPSite($url )
 $loc= [System.Int32]::Parse(1033)
 $templates= $site.GetWebTemplates($loc)
 foreach ($child in $templates){ write-host $child.Name “  ” $child.Title} 

About the author

Leave a Reply