Get a list of web templates and IDs in a SharePoint site

  # Find the template name of SharePoint site using PowerShell $web = Get-SPweb http://SiteUrl Write-host “Web Template:” $web.WebTemplate ” | Web Template ID:” $web.WebTemplateId $web.Dispose() # To get a list of all web templates, use the following PowerShell code function Get-SPWebTemplateWithId {      $templates = Get-SPWebTemplate | Sort-Object "Name"      $templates | ForEach-Object {…

8