Sometimes it’s nice to know which template was used for a website and which ID this template has. Here is how to get that information through Powershell:
$web = Get-SPweb http://SiteUrl
Write-host “Web Template: ” $web.WebTemplate ” | Web Template ID: ” $web.WebTemplateId
$web.Dispose()