SharePoint Features are part of deployment unit that typically consists of set of functionality such as customization, application pages, list schema, etc. that can be activated and de-activated at various levels in SharePoint. Features consists of "Feature.xml" file and any other supporting element files.
Generally Features to be activated or deactivated from SharePoint User Interface. Apart from web interface, Features can be installed/activated/deactivated/uninstalled using STSADM tool, PowerShell, Or Object Model.
Feature Scope id defined by Scope attribute in feature.xml. They have four possible scopes:
- Web application
How to install SharePoint feature using stsadm
To activate SharePoint feature using stsadm
stsadm –o activatefeature –name <feature-name> –url <URL>
Where the URL could be:
- web application URL
- site collection URL
- Sub site URL
To activate a Feature in SharePoint 2010 using PowerShell
Enable-SPFeature <FeatureFolderName in 14 hive> -Url http://server/site/subsite or
If you need to reactivate a same feature again, Use "-force" parameter.
Display the features at the web application level:
To Get a Specific Feature:
$feature = Get-SPFeature -Identity e819dc7-70fd-41723-2323a
You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.