Please follow below steps to get context to run stsadm commands in windows command prompot,
1. Run Command Prompt as 'Administrator'
2. Type below command to go to SharePoint context to run stsadm commands.
cd C:\Program Files\Common Files\Microsoft Shared\web server extensions\15\BIN
Now you can run below commands,
STSADM Commands to retract solution
stsadm -o deactivatefeature -id FEATUREGUID -url http:// -force
stsadm -o deactivatefeature -id FEATUREGUID -url http:// -force
stsadm -o deactivatefeature -id FEATUREGUID -url http://
stsadm -o execadmsvcjobs
stsadm -o retractsolution -name WSPNAME.wsp -immediate -allcontenturls
stsadm -o execadmsvcjobs
stsadm -o retractsolution -name WSPNAME.wsp -immediate -allcontenturls
stsadm -o execadmsvcjobs
STSADM Command for delete solution
stsadm -o deletesolution -name WSPNAME.wsp -override
stsadm -o execadmsvcjobs
stsadm -o execadmsvcjobs
STSADM Command for add solution and deploy solution
stsadm -o addsolution -filename WSPNAME.wsp
stsadm -o execadmsvcjobs
stsadm -o deploysolution -name WSPNAME.wsp -url http:// -immediate -allowgacdeployment
stsadm -o execadmsvcjobs
stsadm -o deploysolution -name WSPNAME.wsp -url http://
STSADM Command for activating feature
stsadm -o execadmsvcjobs
stsadm -o activatefeature -id FEATUREGUID -url http://
stsadm -o activatefeature -id FEATUREGUID -url http://
stsadm -o activatefeature -id FEATUREGUID -url http://
stsadm -o activatefeature -id FEATUREGUID -url http://
stsadm -o execadmsvcjobs
stsadm -o activatefeature -id FEATUREGUID -url http://
stsadm -o activatefeature -id FEATUREGUID -url http://
stsadm -o activatefeature -id FEATUREGUID -url http://
stsadm -o activatefeature -id FEATUREGUID -url http://
No comments:
Post a Comment