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
or
stsadm –o deploysolution –name "abc.wsp” –immediate –allowgacdeployment -force
or
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


Comments

Popular posts from this blog

SharePoint 2016 and 2019 Ports

PsConfig step by step /Configuration Wizard. “Upgrade Available” vs “Upgrade required”

Unlock the SharePoint site using Powershell command