Thursday, August 22, 2013

Find SharePoint Web Template Name using PowerShell

You can find out the Template Name and Id of a SharePoint Site using the following PowerShell command:

$web =  Get-SPWeb -Identity "http://spsrv/sites/web1/"
Write-Host $web.WebTemplate "," $web.WebTemplateId

To list all Template Names and IDs:

Get-SPWebTemplate | select ID, Name, Title | Sort-Object ID


No comments:

Post a Comment