How to check the status of farm level features using powershell in SharePoint 2010


# Disabling Social Ribbon Control Feature in Farm level

$SocialRibbonFeatureStatus= Get-SPFeature -Farm | ?{$_.DisplayName -eq "SocialRibbonControl"}
if($SocialRibbonFeatureStatus -ne $null)
{
write-host -f white "Social Ribbon Control Feature is disabling"
Disable-SPFeature -Identity "SocialRibbonControl" -confirm:$false
write-host -f green "Social Ribbon Control Feature is disabled successfully"
}
else
{
write-host -f yellow "Social Ribbon Control Feature is already disabled"
}
Ebook Download
View all
Learn
View all