Get SharePoint Features using PowerShell in SharePoint 2013

Get SharePoint Features using PowerShell in SharePoint 2013
InfoPath alternatives for form designing SharePoint

In this post we will discuss how we can retrieve features in SharePoint using PowerShell in SharePoint 2013. We will be able to retrieve features from farm and site level also.

Also read:
– Hide Site or Page Title using jQuery in SharePoint 2013

– Hide quick launch left navigation from home page in SharePoint 2013 using jQuery

– Add item to list using JavaScript client object model in SharePoint 2013

Below are the PowerShell commnd:
The below PowerShell command will display features from the farm, it will show features from farm level, web application level, site collection level, site level also.

Add-PSSnapin “Microsoft.SharePoint.PowerShell”

Get-SPFeature | Sort -Property DisplayName

It should show like below:

Get SharePoint Features using PowerShell in SharePoint 2013
Get SharePoint Features using PowerShell in SharePoint 2013

The below commnd will sort based on scope as well as it will filter based on scope like first Farm, web application, site collection etc.
Get-SPFeature | Sort -Property Scope,DisplayName | FT -GroupBy Scope DisplayName,Id

Below PowerShell command will display features within a particular site collection:

Add-PSSnapin “Microsoft.SharePoint.PowerShell”

Get-SPFeature -Site https://SiteCollectionURL/ | Sort DisplayName | FT DisplayName,Id

Below commnd will display features which are in web scope.
Add-PSSnapin “Microsoft.SharePoint.PowerShell”

Get-SPSite https://SiteCollectionURL/ | Get-SPWeb -Limit ALL | %{ Get-SPFeature -Web $_ } | Sort DisplayName -Unique

Below command will display features which are in web scope and it will filter based on DisplayName and ID.
Add-PSSnapin “Microsoft.SharePoint.PowerShell”

Get-SPSite https://SiteCollectionURL/ | Get-SPWeb -Limit ALL | %{ Get-SPFeature -Web $_ } | Sort DisplayName -Unique | FT DisplayName,Id

Hope it will be helpful.

Similar SharePoint 2013 Tutorials

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →

Leave a Reply