SharePoint 2013 TIP: Resources for Finding Feature IDs

The following are some methods for discovering feature IDs:

Notes

  • This posting was originally motivated by my experiencing the rare failure when running PSCONFIG.  In the error diagnostics log, I found this message:

    [timestamp] PSCONFIG (0x577C) 0x6234 SharePoint Foundation Upgrade SPContentDatabaseSequence ajxkh ERROR Feature (Id = [3caaf2a1-5581-4dd6-9237-66835f99beb4]) is referenced in database [WSS_Content], but isn't installed on the current farm. The missing feature might cause upgrade to fail. If necessary, please install any solution that contains the feature and restart upgrade. 00000000-0000-0000-0000-000000000000.

    I first explored various PowerShell methods for retrieving feature IDs.  I could not find the feature using Get-SPFeature or in the properties of the Get-SPSite.  Nor was it found in AllWebParts table interrogated using a SQL Query (yes, I know I shouldn't have done this, but this was a non-production farm).  I eventually found the solution by going back to stsdm and executing a single simple stsadmn -o enumallwebs command.  Amazing.

  • Moreover, you can use the "-includefeatures" option retrieves values in simple, well-formatted XML.  Just export to an XML file as shown in the example above and then drop the file onto a browser to instantly see everything in readable XML.

  • You can also use stsdm to enumerate lots of other objects across the entire farm, such as event receivers, web parts, etc.