I am writing a script to activate/deactivate certain features and there are a couple web application scoped features and when i test the commands, the feature status doesnt change.

Im using:

stsadm -o activatefeature -if {guid} -url {url}

Im not sure how else to do it.

If im not clear, shufler (in the comments below has it worded differently).

有帮助吗?

解决方案

Try deactivating and then activating again using the following commands:

  stsadm -o deactivatefeature -id C2EC140A-FF1B-4828-8238-1E37704E53A4 -url http://testwebappl -force

  stsadm -o activatefeature -id C2EC140A-FF1B-4828-8238-1E37704E53A4 -url http://testwebappl -force

Note: Replace the name of Feature GUIDs and web application URL with actual ones.

Important: it is recommended to run above commands as a .bat file to avoid SharePoint GUI timeouts during features activation/deactivation

许可以下: CC-BY-SA归因
scroll top