Thursday, December 13, 2012

SharePoint 2010 Feature activation and disabling with PowerShell script

The script activates a feature with ID 00BFEA71-EB8A-40B1-80C7-506BE7590102 at a web site under “YourServer/Sites/” site collection

Feature activation:

Enable-SPFeature "00BFEA71-EB8A-40B1-80C7-506BE7590102" -Url http://YourServer/Sites/testsite

Feature disabling:

Disable-SPFeature "00BFEA71-EB8A-40B1-80C7-506BE7590102" -Url http://YourServer/Sites/testsite

Note!!!

The feature must be already deployed and installed, the scripts just activating  and disabling the feature.

No comments:

Post a Comment