Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

If I want to know elements of a particular FEATURE (any scope) before I hit the Activate button, I need to locate the FEATURE on SharePoint root.

I want to know what's the best way to locate the FEATURE on SharePoint root..with least amount of manual efforts..

share|improve this question
    
I'm interested in why you needed to find the feature on disk. Can you provide some context? –  Steve P Jul 3 '11 at 9:12
1  
That is to understand what exactly the feature would do once I activate it. This helps to understand how sharepoint does things nehind the scene and for learning purpose also. –  Ashish Patel Jul 3 '11 at 14:31
add comment

3 Answers

Navigate to c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\<Your feature name here>\

share|improve this answer
    
I know the location where all feature are stored. But my question is how to I locate a particular feature. For example, on UI, I see "Content Organizer", so how do I find that feature on Sharepoint root? –  Ashish Patel Jul 2 '11 at 17:54
    
because there is no such feature as "c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\Content Organizer" –  Ashish Patel Jul 2 '11 at 18:53
    
If you have the ID you can use PowerShell to find out the Feature folder name in the 14 hive to find the folder. If you want to find a correlation between the "Title" as you see in the UI and the feature folder, there's a huge disconnect here, and it's not easy to do. If the feature is already activated, you will see the GUID of the feature in the URL when you're asked to confirm deactivating the feature, then you can get the foldername with that GUID. –  James Love Jul 2 '11 at 18:58
    
Thanks for that info. what I notice though is it does not ask for confirmation for most features while activating.. they just get activated :-( .. Anyways, I am close to finding the answer.. just want to get it done with least efforts.. –  Ashish Patel Jul 2 '11 at 19:14
    
Yeah, that's always dodgy, gotta be careful which one you activate as there's no prompt! I think there can be a way to do it, as if you do this: Get-SPFeature | where {$_.Id -eq "ff48f7e6-2fa1-428d-9a15-ab154762043d"} | get-member You'll get a list of al the available properties for that Feature, including a GetTitle method, but I don't know enough PowerShell to use that to build a filter on the actual Title. Maybe a PoSH Jedi could help –  James Love Jul 2 '11 at 19:35
show 2 more comments
up vote 1 down vote accepted

I figured out a way to open the corresponding feature directory based on title of the feature as you see on site/web features page from Site Settings:

Explorer (Get-SPFeature | Where-Object {$_.GetTitle([System.Globalization.CultureInfo]::CurrentCulture) -eq "Content Organizer"}).RootDirectory

Note that you will have to change the title based on the FEATURE that you are interested in..

share|improve this answer
    
That's the kind of thing I was getting that - though you've added a flourish of opening it in Explorer - Nice! –  James Love Jul 2 '11 at 19:51
add comment

If you look at the source of the feature admin page, you can look for the feature (i.e. look for content organiser text in the source). When you find the text in the page's source, in the same TR you can find the id of the feature that gets activated when you click the "Activate" button for that id. The id of the div around the button is the id of the feature.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.