Wednesday, March 17, 2010

Re-activating a feature with scope Web

Ever had a feature activated in several subsites, needing to be re-activated?

Uninstall / install feature will not work. But this command from Gary Lapointe will: gl-activatefeature (more information here).

It will perform the deactivate and activate in all subwebs, if you provide the command with the base site collection url. You can also define that only the webs with the feature already activated will have this re-activation done (using -ignorenoactive).

(Yet another) great command!

No comments:

Post a Comment