Products: SharePoint 2010/2013
Recently a case came in where the company needed to locate where a feature had been activated within a specific Web Application as it was causing troubles with a Web.Config file.
We were able to use this script to locate the sites with the features enabled.
Run the below (attached as well as a *.txt file for your convenience) PowerShell script (PowerShell ISE works well) from a SharePoint Server:
PowerShell Script |
---|
|
Usage:
- Replace http://yourUrl with the URL of your Web Application.
-
Replace 00000000-0000-0000-0000-000000000000 guid with the Guid of the FeatureDefinitionId to be located.
To obtain the FeatureDefinitionId's of all features in the SharePoint farm you can run this Cmdlet: Get-SPFeature