In the first part of my tips series on the STSADM commands covered the basics of the tool and its usage for the general SharePoint Migration tasks. However, on SharePoint server 2007 , STSADM provides a lot more operations than just migration tasks. This installment covers the commands used to achieve different operations with SharePoint Solutions and SharePoint Features.
Add a Solution
stsadm.exe -o addsolution -filename “D:\Solution.wsp”
Deploy a Solution
stsadm.exe -o deploysolution -name Solution.wsp -allowgacdeployment -immediate
Retract a Solution
stsadm.exe –o retractsolution –name Solution.wsp
Delete a Solution
stsadm.exe –o deletesolution –name Solution.wsp
Install Features
stsadm –o installfeature –filename [path of the Feature.xml file relative to the 12\TEMPLATE\FEATURES folder ]
Activate Features
stsadm –o activatefeature –name [folder in FEATURES directory containing the Feature.xml file ] -url [site collection url]
De-Activate Features
stsadm.exe -o deactivatefeature -filename [path of the Feature.xml file relative to the 12\TEMPLATE\FEATURES folder ] -force -url [site collection url]