Find the title and description of a feature with PowerShell

Here’s a useful line or two of Powershell to help track down details of a feature in your SP2010 environment – specifically the Title and Description of a feature from its ID. Why is this needed? A couple of weeks ago I saw a message from Marc Anderson (@sympmarc) about receiving an error message when trying to recreate a site from a template in an environment with a different set of features enabled. His error message gave him a feature ID but there’s no obvious way of tracking this down through the front-end (especially if the feature is hidden!).

So if you use something like the below you can get a neatly formatted table to show the Title and Description from a feature ID:

Get-SPFeature -Identity f6924d36-2fa8-4f0b-b16d-06b7250180fa | ft @{Label='Title';Expression={$_.GetTitle(1033)}}, @{Label='Description';Expression={$_.GetDescription(1033)}} -auto -wrap

Note the 1033 for the locale.

PowerShell to find feature title

If you want something a little simpler to remember then you could just use:

(Get-SPFeature -Identity f6924d36-2fa8-4f0b-b16d-06b7250180fa).GetTitle(1033)

With thanks to Michal Pisarek for the great SharePoint and PowerShell info on his blog post – pointing me in the direction of Get-Member to ‘explore’ a feature with PowerShell.

share and enjoy
  • Print
  • Twitter
  • Digg
  • del.icio.us
  • StumbleUpon
  • Yahoo! Buzz
  • Google Bookmarks
  • Facebook

2 comments to Find the title and description of a feature with PowerShell

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>