Powershell and STSADM command to install activate feature SharePoint 2010/2013/2016

In this SharePoint tutorial, we will discuss PowerShell and STSADM command to install and activate feature SharePoint 2010/2013/2016.

We will see here how we can install and activate feature using PowerShell and STSADM.

Powershell command to install activate feature SharePoint

PowerShell command to Install Feature

Install-SPFeature FeatureFolderName

Here FeatureFolderName folder must be presented inside C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES directory.

PowerShell Command to Activate/Enable Feature

Enable-SPFeature FeatureFolderName -Url http://ur-site-url

PowerShell Command to Disable Feature

Disable-SPFeature FeatureFolderName -Url http://ur-site-url

Here FeatureFolderName folder must be presented inside C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES directory.

PowerShell Command to Uninstall Feature

Uninstall-SPFeature FeatureFolderName

Here FeatureFolderName folder must be presented inside C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES directory.

STSADM command to install activate feature SharePoint

Now we will discuss stsadm command to install activate feature SharePoint 2010/2013/2016.

Here are some commands to install, activate, deactivate and uninstall features in SharePoint 2010 through stsadm.

STSADM command to Install Feature

STSADM.EXE -o installfeature
{-filename |
-name }
[-force]

STSADM command to Activate Feature

STSADM.EXE -o activatefeature
{-filename |
-name |
-id }
[-url ]
[-force]

STSADM command to Deactivate Feature

STSADM.EXE -o deactivatefeature
{-filename |
-name |
-id }
[-url ]
[-force]

STSADM command to Uninstall Feature

STSADM.EXE -o uninstallfeature
{-filename |
-name |
-id }
[-force]

You may like following PowerShell SharePoint tutorials:

Hope this PowerShell SharePoint tutorial helps to install and activate features using PowerShell and STSADM in SharePoint 2010/2013/2016.

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

>