SharePoint 2013/2016: PowerShell check if feature is activated

How to know feature activate status using powershell sharepoint 2013?

This SharePoint tutorial I will explain to you, how we can get to know about feature activation status using PowerShell in SharePoint 2013/2016. Every SharePoint feature has a feature Id and here we will use the feature id to know the activation status. SharePoint 2013/2016: PowerShell check if feature is activated


Below is the PowerShell command to check if a feature is activated or not. You can write, test and debug PowerShell script using Windows PowerShell ISE or by using Visual Studio Code.

Add-PSSnapin “Microsoft.SharePoint.PowerShell”

$featureGuid = “22a9ef51-737b-4ff2-9346-694633fe4416”

$web = Get-SPWeb https://SiteURL.com/marketing/web/

$feature = $web.Features[$featureGuid]

if ($feature -eq $null) { “does not activated” } else { “activated” }

It will display “activated” if the feature status is activated and it will display “does not activated” if the SharePoint feature is not activated. The code will work in SharePoint 2013 and SharePoint 2016.

How to know feature activate status using powershell sharepoint 2013?
How to know feature activate status using PowerShell SharePoint 2013?

You may like following SharePoint PowerShell tutorials:



Hope this will be helpful to understand how to check a feature is activated using PowerShell in SharePoint 2013/2016.

Check out Best Alternative to InfoPath -> Try Now

You May Also like the Following SharePoint Online 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 →