Display Available Features

Scenario/Problem: You need to obtain a feature reference and therefore need a listing of available features.

Solution: Use the Get-SPFeature cmdlet using the desired scope.

The Get-SPFeature cmdlet is handy for listing the installed features at various levels within your SharePoint environment. Issuing the command without any parameters displays all features at every level. Because there are about 12 dozen features at all levels, listing them all is usually not helpful.

Luckily, the Get-SPFeature cmdlet has several parameter sets you can use to narrow your list of features. To display the features at the farm level, simply use the -Farm switch parameter, as shown in Listing 9.17.

Listing 9.17. Displaying All Installed ...

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.