Wednesday, April 6, 2011

STSADM command line to activate / deactivate publishing features

stsadm -o activatefeature -filename publishing\feature.xml -url -force

stsadm -o activatefeature -filename publishingresources\feature.xml -url -force

stsadm -o activatefeature -filename publishingSite\feature.xml -url -force (activating on site collection level)

stsadm -o activatefeature -filename publishingweb\feature.xml -url -force (activating on root site level)

stsadm -o activatefeature -filename publishinglayouts\feature.xml -url -force

stsadm -o activatefeature -filename navigation\feature.xml -url -force

No comments: