Pages

Saturday, December 20, 2014

stsadm commands for sharepoint

echo off
set SPAdminTool=%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe
set TargetUrl=http://starwood/
C:\Program Files\CommonProgramFiles\Microsoft Shared\web server extensions\12\BIN\stsadm.exe


Remove solution
stsadm.exe -o deactivatefeature -name fnb.timerjob -url http://starwood/ -force
stsadm.exe -o uninstallfeature -name fnb.timerjob -force

stsadm.exe -o retractsolution -name fnb.timerjob.wsp -immediate -allcontenturls
stsadm.exe -o execadmsvcjobs
stsadm.exe -o deletesolution -name fnb.timerjob.wsp
stsadm.exe -o retractsolution -name fnb.timerjob.wsp -immediate -allcontenturls

Add Solution

stsadm.exe -o addsolution -filename fnb.timerjob.wsp
stsadm.exe -o deploysolution -name fnb.timerjob.wsp -immediate -allcontenturls -allowgacdeployment
stsadm.exe -o deploysolution -name fnb.timerjob.wsp -immediate -allowgacdeployment
stsadm.exe -o execadmsvcjobs
stsadm.exe -o installfeature -name fnb.timerjob -force
stsadm.exe -o activatefeature -name solutionManager -url http://starwood/ -force