Wednesday, March 16, 2011

Stsadm Commands for add/depoly solution

Addsolution :
stsadm.exe –o addsolution –filename “C:\abc.wsp”
Deploy Solution:
stsadm.exe –o deploysolution –name abc.wsp –local –allowgacdeployment
stsadm –o deploysolution –name "abc.wsp” –immediate –allowgacdeployment -force
stsadm –o deploysolution –name "abc.wsp” –url http://localhost/ravi  –immediate –allowgacdeployment

Upgrade Solution:
stsadm.exe –o upgradesolution –name abc.wsp –filename “C:\abc.wsp” –immediate –allowgacdeployment

Retract Solution:
stsadm -o retractsolution -name abc.wsp -immediate
The retractsolution operation removes files from the front-end Web server
Remove Solution:
stsadm -o deletesolution -name ab.wsp
stsadm -o execadmsvcjobs : By using the STSADM operation execadmsvcjobs, we can force the timer job to execute immediately.This helps us when we donot want to wait until the scheduled time is reached

Activate Feature:
stsadm –o activatefeature –name <<YourfeatureName>> –url “http://localhost/ravi” -force
Deactivate Feature:
stsadm -o deactivatefeature -name <<featurename>> -url "http://localhost/ravi"  -force

No comments:

Post a Comment