Get Feature GUID – using IE Dev ToolBar

When dealing with PowerShell, it’s often tricky to work out how to get the GUID of a SharePoint feature.

There’s an easy way to grab the GUID – from within the “Site Settings > Site Collection Features” screen.

image

  1. Within Internet Explorer – click F12 for Developer Tools.
  2. Click on the ‘arrow’ – and then choose the ‘Activate’ button for the feature you’re checking
  3. In the HTML – there is an “ID” value above the button (surrounding DIV) – this is the feature ID !

image

Just need to click on the GUID – and can do a copy+paste to a PowerShell window.

The following statement will get the details for the feature (just replace with your GUID) :

Get-SPFeature |  Where-Object {$_.Id -eq “[GUID]”}

image

The above feature is the “Open Documents in Client Applications by Default” feature – I needed the ‘DisplayName’.

This means I can have a script like THIS – this activates the feature for a specific SPSite (Site Collection).

$site = Get-SPSite https://server/site
Enable-SPFeature -Identity “OpenInClient” -Url $site.Url

Very simple solution then – to determine the “DisplayName” of a feature – using the GUID, sourced from the HTML within the page.

Hope this tip is useful to someone out there – has been very helpful for me !

🙂

Advertisements

2 thoughts on “Get Feature GUID – using IE Dev ToolBar

  1. Pingback: Determine Site Template ID – using Internet Explorer | SharePointRoot

  2. But the animations that you see on television or motion pictures are very
    sophisticated and they require powerful workstations.
    Complete a milestone chart showing date, milestone and a RAG (Red, Amber, Green) status flag.
    Before we go on, we should learn something about
    how audio works in Power – Point.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

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