Sharepoint 2007/2010 Tips: Deployments – Useful STSADM Commands


To restract the solution:

stsadm.exe –o retractsolution -name “SOLUTION.wsp” -immediate -allcontenturls

To add the solution:

stsadm.exe -o addsolution –filename “SOLUTION.wsp”

To deploy the solution:

stsadm.exe –o deploysolution -name “SOLUTION.wsp”" -immediate -allcontenturls -allowGacDeployment -allowCasPolicies -force

To delete the solution:

stsadm.exe -o deletesolution –name “SOLUTION.wsp”

If the operations sucks…:

To see the deployment-status (pending etc.):

stsadm -o enumdeployments

To cancel the deployment:

stsadm -o canceldeployment –id “id”

To run all pending jobs on the server (not recommended!…):

stsadm -o execadmsvcjobs

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s