Jul 222015
Introduction
Get-SPFeature is a command used to list out all the features in a SharePoint farm (scope can be set). You can scope this command to different levels, the levels are…
- Farm – Only SharePoint farm level features are displayed
- Web Application – Only web application level features are displayed
- Site – Only site level features are displayed
- Web – For sub sites
Examples…
#Display all SharePoint farm features Get-SPFeature –Limit All
Scoping features…
#Display all SharePoint features scoped to farm Get-SPFeature -Limit ALL | Where-Object {$_.Scope -eq "FARM"} #Display all SharePoint features scoped to web application Get-SPFeature -Limit ALL | Where-Object {$_.Scope -eq "webapplication"} #Display all SharePoint features scoped to site Get-SPFeature -Limit ALL | Where-Object {$_.Scope -eq "site"} #Display all SharePoint features scoped to web Get-SPFeature -Limit ALL | Where-Object {$_.Scope -eq "web"}
List all features in a Site Collection…
#Displays all SharePoint features for a site collection using Grid view
Get-SPSite http://mysiteurl | Get-SPWeb -Limit ALL |%{ Get-SPFeature -Web $_ } | Out-GridView –Title “All features for this site”
Help…
#For detailed help type in… Get-Help Get-SPFeature –Full