Friday, May 3, 2013

Important SharePoint 2010 STSADM Commands

STSADM Commands to Deploy Webpart:


stsadm -o addsolution -filename "my wsp path"
stsadm -o deploysolution -name "myVisualWebpart.wsp" -url "http://mysite" -allowgacdeployment -immediate -force
stsadm -o upgradesolution -name "myVisualWebpart.wsp" -filename "my wsp path"  -immediate -allowgacdeployment
stsadm -o retractsolution   -name "myVisualWebpart.wsp" -immediate
stsadm -o deletesolution -name "myVisualWebpart.wsp" –override

STSADM Commands to Deploy Feature:         

stsadm –o installfeature –filename "Feature.xml file relative to the 14\TEMPLATE\FEATURES"
stsadm –o activatefeature –name "Feature.xml file relative to the 14\TEMPLATE\FEATURES" -url "http://mysite/"
stsadm -o deactivatefeature –filename "Feature.xml file relative to the 14\TEMPLATE\FEATURES" -url "http://mysite/" -force
stsadm -o uninstallfeature –filename "Feature.xml file relative to the 14\TEMPLATE\FEATURES" –force


STSADM Commands to Deploy InfoPath Form Template:         
stsadm.exe -o UploadFormTemplate -filename "Published Form Path" stsadm.exe -o ActivateFormTemplate -url "http://mysite" -filename "Published Form Path" stsadm.exe -o UpgradeFormTemplate -filename "Published Form Path" stsadm.exe -o DeactivateFormTemplate -url "http://mysite" -filename "Published Form Path" stsadm.exe -o RemoveFormTemplate -filename "Published Form Path"

STSADM Commands for Site Backup and Restore:

stsadm –o backup –url "URL of the site collection" -filename "Name of the backup file"
stsadm –o restore –url "URL of the site collection" -filename "Name of the backup file" -overwrite


STSADM Command to Cancel deployment :

stsadm -o canceldeployment -id <id>

To get the ID you have to use 
stsadm -o enumdeployments



No comments:

Post a Comment

SharePoint Deployment Error : The specified path, file name, or both are too long.

Hi, Sometimes we get surprised with below error while deploying wsp file... Solution : To overcome with this issue, we just ne...