There was an error in this gadget

Wednesday, March 7, 2012

Powershell commands to Install-Activate-Deactivate and Uninstall SharePoint Feature

Powershell commands 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.

-Activate/Enable Feature:

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

-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.

-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.

No comments:

Post a Comment