Steps:
Open your Powershell window in your system.
Paste the below code in your powershell window.
- # Find the template name of SharePoint site using PowerShell
- $web = Get-SPweb http://gauti.sharepoint.com
- 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 {
- $templateValues = @{
- "Title" = $_.Title
- "Name" = $_.Name
- "ID" = $_.ID
- "Custom" = $_.Custom
- "LocaleId" = $_.LocaleId
- }
- New-Object PSObject -Property $templateValues | Select @("Name","Title","LocaleId","Custom","ID")
- }
- }
- Get-SPWebTemplateWithId | Format-Table
Hope you have enjoyed this.

Vijay SPosted Jun 17, 2015, 9:15 AM
Good one