New answers tagged

0

You need to get the activated features by the AdministrationService Powershell : [Microsoft.SharePoint.Administration.SPWebService]::AdministrationService.Features C# : Microsoft.SharePoint.Administration.SPWebService.AdministrationService.Features


0

this MS developer blog by Joe Rodgers helped us with: Get-SPWeb http://sharepoint2010/subsite | % { $results = @() Get-SPFeature -Web $_ -Limit All | % { $feature = $_; $featuresDefn = (Get-SPFarm).FeatureDefinitions[$_.ID]; $cc = [System.Globalization.CultureInfo]::CurrentCulture; $obj = New-Object PSObject; ...


0

As per msdn The Get-SPFeature cmdlet behaves differently at each scope, returning the enabled Features at each level. If no scope is provided, all installed Features are returned That means below command will return only active list of features Get-SPFeature -Farm Here is another snippet that gives the same result $siteFeatures = Get-SPFeature | ...


1

Just skip the -Url parameter Enable-SPFeature -Identity <feature_name_or_Guid> -confirm:$false More found on TechNet



Top 50 recent answers are included