Friday, February 10, 2017

Find All Farm Features With Solution Names Using PowerShell SharePoint 2013

This PowerShell script traverse all the custom solutions deployed in Central Admin and the features that get deployed under that solutions. 

It exports following items.
1. Solution ID
2. Solution Name
3. Feature ID
4. Feature Name
5. Feature Scope


 You can change the paths accordingly.


 [code] Start-Transcript "C:\FeatureLogs.txt" $farm=[Microsoft.SharePoint.Administration.SPFarm]::Local foreach ($solution in $farm.Solutions) { $solId = (Get-SPSolution $solution.DisplayName).Id foreach($featcher in (Get-SPFeature | where {$_.solutionId -eq $solId})) { $SolutionID = $solution.DisplayName $output = $solution.id.GUID + "`t" + $solution.DisplayName + "`t" + $featcher.id.GUID + "`t" + $featcher.DisplayName + "`t" + $featcher.Scope Write-Host $output } } Stop-Transcript [/code]

Output:



No comments:

Post a Comment