Skip to content

Instantly share code, notes, and snippets.

@nlarkin
Created May 9, 2013 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nlarkin/5547222 to your computer and use it in GitHub Desktop.
Save nlarkin/5547222 to your computer and use it in GitHub Desktop.
Sharepoint 2010 Powershell script to display list of currently available web templates for a given spweb object.
$url = “http://spweburl”
$spweb= Get-SPWeb $url
$templates= $site.GetAvailableWebTemplates($spweb.RegionalSettings.LocaleId)
$templates | Select Name, Title | Sort Title | Format-Table
$spweb.Dispose()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment