November 18, 2011 by Nitesh

Installing and Deploying web part solutions using stsadm Utility

Hello Friends,

From Microsoft TechEd, Stsadm is a command line tool for administration of Office SharePoint servers and sites. stsadm has been included in Microsoft Office SharePoint Server 2007 and MOSS 2010. Stsadm provides a method for performing the Office SharePoint Server 2007 administration tasks at the command line or by using batch files or scripts. Stsadm provides access to operations not available by using the Central Administration site, such as changing the administration port. The command-line tool has a more streamlined interface than Central Administration, and it allows you to perform the same tasks. There are certain operations and certain parameters that are only available by using the Stsadm command-line tool.

Point to Note: You must be an administrator on the local computer to use Stsadm.

File Located at: Stsadm is located at the following path on the drive where SharePoint Products and Technologies is installed: %WINDOWS DRIVE%\%PROGRAMFILES%\Common Files\microsoft shared\web server extensions\12\bin

To deploy web parts to server, the following steps are to be done:

  1. Delete Previous Solution from Store if it exists
  2. Add Solution to store
  3. Deploy Solution to store

Below are the steps to be followed:
1. Go to Start Menu –> Run –> Type cmd and Hit Enter


2. If you have configured your command window’s path to locate the stsadm command, it would run else would throw an error as “stsadm is not recognized as an internal or external command”  To check this, Type stsadm and hit enter. If you do not see the below error, skip to step 3.

3. To Delete Solution from Store if it exists, type the following command:

stsadm -o deletesolution -name {Name of .wsp file} -override

Rename the .wsp file with you .wsp file name and hit enter.

4. To Add Solution to store, type the following commad in command window.

stsadm -o addsolution -filename {Complete path of .wsp file}

Rename the .wsp file with complete path of your .wsp file name and hit enter.

5. To Deploy Solution to store, type the following commad in command window.

stsadm -o deploysolution -name {Name of .wsp file} -url {URL OF Site to deploy solution} -local -allowGacDeployment

Rename the .wsp file with name of your .wsp file name and hit enter.

The solution will be deployed to the Sharepoint server and you can activate the feature by going to “Site Settings”–>”Site Collection Features” on the Sharepoint site or can activate feature using stsadm as detailed here.

Please let me know your feedback/comments on this. I will be publishing next post to install/uninstall feature using stsadm shortly..Subscribe to get latest nes from the blog!

#SharePoint#stsadm#Utilities#Web parts

Support us!

If you like this site please help and make click on any of these buttons!

Powered by WordPress Popup