Tuesday, February 10, 2009

STSADM

The following sample stsadm commands are useful when working with Features and Solutions. The stsadm.exe application can be found at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\.

Deactivate a feature:
stsadm –o deactivatefeature –name wileyfeature–url http://sp2007dev/sitedirectory/wroxprosp2007teamsite

Uninstall a feature:
stsadm –o uninstallfeature –name wileyfeature

Add a solution to the Solution Store:
stsadm –o addsolution –filename c:\wsp\wileyfeature.wsp

Deploy a solution from the Solution Store:
stsadm –o deploysolution –name wileyfeature.wsp -immediate

Retract a solution from the Solution Store (do this before deleting the solution completely from the Solution Store – this is the opposite of the deploysolution switch):
stsadm –o retractsolution –name wileyfeature.wsp –immediate

Delete a solution from the Solution Store (do this only after retracting the solution from the web server – this is the opposite of the addsolution switch):
stsadm –o deletesolution –name wileyfeature.wsp

-----

No comments: