All Available SharePoint Web Template ID

I found good reference from Praveen Hebbar blog and I don’t want to loose it.

In my scenario, this is very useful for SharePoint branding. I utilize it when feature activating event to apply different custom master page for My Site / Search Site based on the Web Template ID.

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

Results Table

AllAvailableWebTemplateID

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reference
http://blogs.technet.com/b/praveenh/archive/2013/04/04/get-a-list-of-web-templates-and-ids-in-a-sharepoint-site.aspx

Advertisements

Tagged: ,

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: