Get the list of activated features in the site collection and web sites using SharePoint 2010 web service in Powershell

In this blog you will see how to get the list of activated features in the site collection and web sites using SharePoint 2010 web service in Powershell

Steps Involved:

  1. Open SharePoint 2010 Management Shell by going to Start | All Programs | SharePoint | Microsoft SharePoint 2010 Products | SharePoint 2010 Management Shell (Run as Administrator).
  2. Run the following script.

Powershell Script:

 
## Get all the activated feature ID's in the site collection and web site
$uri="http://serverName:10736/sites/ECT/_vti_bin/Webs.asmx?wsdl"
## Web Service Reference - http://Site/_vti_bin/Webs.asmx
$websWebServiceReference = New-WebServiceProxy -Uri $uri -UseDefaultCredential
$activatedFeatures=$websWebServiceReference.GetActivatedFeatures()
## $activatedFeatures is a string consisting of two comma-delimited parts, one that contains the IDs of Features that are activated in the site collection, and the other that contains the IDs of Features that are activated in the Web site.
Write-Host -ForegroundColor Green $activatedFeatures