Show hidden features in SharePoint 2013 using PowerShell

Hidden features in SharePoint 2013
Check out Best Alternative to InfoPath


Objective:
In SharePoint we can enable and disable some feature with the help of features. In SharePoint we can find 3 type of features.
-> Out Of the Box (OOB) features
-> Custom features
-> Hidden features
In this article I would like to discuss about how to create a custom hidden features and list all the hidden features in SharePoint 2013. In SharePoint we create a feature as hidden to avoid accidental clicks which could disable important feature. In SharePoint Microsoft has created many hidden features by default like the way how we have hidden lists.

How to display SharePoint hidden features using PowerShell?

In SharePoint if we want to list the hidden features we have to either write object model and read through all the features to determine the feature is hidden or not else we have to execute powershell commands. Hidden features can be created / existed with various scopes:
-> FARM
-> Web Application
-> Site Collection
-> Web
In this article I would like to show you how to list the hidden features in SharePoint using PowerShell.
1. Open Microsoft SharePoint PowerShell command line window as administrator. You can also read SharePoint 2013 PowerShell articles on: Windows PowerShell ISE Tutorial and Debugging PowerShell with Visual Studio Code
2. Run the below command to list all the hidden features in SharePoint 2013 with the scope as “Web”



Get-SPFeature -Limit ALL | Where-Object {$_.Hidden -eq $true -and $_.Scope -eq “Web”} | sort-object DisplayName | Get-Unique -asstring | Sort-Object DisplayName | Select DisplayName, Id, Scope
Hidden features in SharePoint 2013
Hidden features in SharePoint 2013
3. The below command will list all the hidden features with the scope as “Web Application”
Get-SPFeature -Limit ALL | Where-Object {$_.Hidden -eq $true -and $_.Scope -eq “WebApplication”} | sort-object DisplayName | Get-Unique -asstring | Sort-Object DisplayName | Select DisplayName, Id, Scope
4. The below command will list all the hidden features with the scope as “Site Collection”
Get-SPFeature -Limit ALL | Where-Object {$_.Hidden -eq $true -and $_.Scope -eq “Site”} | sort-object DisplayName | Get-Unique -asstring | Sort-Object DisplayName | Select DisplayName, Id, Scope
5. The below command will list all the hidden features with the scope as “FARM”
Get-SPFeature -Limit ALL | Where-Object {$_.Hidden -eq $true -and $_.Scope -eq “FARM”} | sort-object DisplayName | Get-Unique -asstring | Sort-Object DisplayName | Select DisplayName, Id, Scope
Once you see the list you can enable any required feature with the below PowerShell command with the GUID of the feature.
Syn:
Enable-SPFeature –Identity “<<GUID>>” –url <<Site collection URL>> -PassThru
Ex:
Enable-SPFeature –Identity “af847aa9-beb6-41d4-8306-78e41af9ce25” –url http://sharepoint13:12345
Hope this sharepoint 2013 powershell tutorial will help you to retrieve hidden features in SharePoint 2013 using PowerShell.

You May Also like the Following SharePoint Online Tutorials:

About Krishna Vandanapu

I am Krishna.Vandanapu a SharePoint architect working in IT from last 12 years, I worked in SharePoint 2007, 2010, 2013, 2016 and Office 365. I have extensive hands on experience in customizing SharePoint sites from end to end. Expertise in SharePoint migration tools like Sharegate, Doc Ave and Metalogix. Migrated SharePoint sites from SharePoint 2007 to 2010 and 2010 to 2013 several times seamlessly. Implementing CSOM with Microsoft best practices. Spent quality time in configuring SharePoint application services like User Profile, Search, Managed Meta data services etc. Now exploring SharePoint Framework and SharePoint 2019

View all posts by Krishna Vandanapu →