Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Here is a snippet of Windows PowerShell code to list all the activated Features for a site collection (SPSite):
Get-SPSite https://sharepoint2010 | % {
$results = @()
Get-SPFeature -Site $_ -Limit All | % {
$feature = $_;
$featuresDefn = (Get-SPFarm).FeatureDefinitions[$_.ID];
$cc = [System.Globalization.CultureInfo]::CurrentCulture;
$obj = New-Object PSObject;
$obj | Add-Member NoteProperty Title $($featuresDefn.GetTitle($cc));
$obj | Add-Member NoteProperty Hidden $($feature.Hidden);
$results += $obj;
}
$results | FT -auto;
}
Here is a snippet of Windows PowerShell code to list all the activated Features for an individual web (SPWeb).
Get-SPWeb https://sharepoint2010/subsite | % {
$results = @()
Get-SPFeature -Web $_ -Limit All | % {
$feature = $_;
$featuresDefn = (Get-SPFarm).FeatureDefinitions[$_.ID];
$cc = [System.Globalization.CultureInfo]::CurrentCulture;
$obj = New-Object PSObject;
$obj | Add-Member NoteProperty Title $($featuresDefn.GetTitle($cc));
$obj | Add-Member NoteProperty Hidden $($feature.Hidden);
$results += $obj;
}
$results | FT -Auto;
}
Please note, this formatted output will not match the output you see on the ManageFeatures.aspx page for two reasons. First, the ManageFeatures.aspx page will show you all of the deactivated Features in the farm that could be activated for the site collection or individual web as well as all of the activated Features for the site or web. Second, the ManageFeatures.aspx page does not display Features marked as Hidden.
The output from this PowerShell script will show you the hidden and non-hidden Features that are activated for the site or web.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in