STSADM command to add/deploy solutions to the server

STSADM is a command line tool provided by SharePoint to deploy, install and uninstall the features with a SharePoint Farm.
To run the stsadm command the user needs to be part of the user group "WSS_ADMIN_WPG" and also to the administrator group. The executable file is location in the "bin" folder.

Once the solution is ready for deploying in the server, one needs to run the following commands in the server:
  • Adding the Solution: stsadm -o addsolution -filename C:\MHM.MainEmpDirListingCode.wsp
  • Deploying the Solution: stsadm -o deploysolution -name MHM.MainEmpDirListingCode.wsp -url http://172.16.20.150:1975 -allowGacDeployment -immediate
  • Retracting the Solution: stsadm -o retractsolution -name MHM.MainEmpDirListingCode.wsp -allcontenturls -immediate
  • Removing the Solution: stsadm -o deletesolution -name MHM.MainEmpDirListingCode.wsp -override

Comments

Popular posts from this blog

What is the difference between a Page Layout and Master Page in SharePoint?

Accessing data from SharePoint 2010 to an ASP.NET application

What is the difference between DDL, DML and DCL?