Subscribe:      
 

SharePoint 2007 STSADM Overview

Written By: Matt Takhar -- 1/5/2011 -- join -- contribute -- (2934) comments -- printer friendly version

Rating: Rate --

Categories: MOSS 2007, System Administration, WSS3

< Prev - 1 | 2 | - Next > | Become a paid author

Problem

When SharePoint goes wrong or you need to do some "advanced" configuration, you are often referred to a tool called STSADM. This article gives you an overview of that tool.

Solution

Overview

Firstly lets clear up the name, STSADM stands for SharePoint Team Server Administration. (This is because many moons ago SharePoint was called Team Server. Those of you new to SharePoint will find Microsoft likes to change product names from time to time.)

STSADM is a command-line tool to help you administer SharePoint. It is more powerful than "SharePoint Central Administration" and allows you to script multiple commands. However, one small caveat here. Going forward Microsoft is encouraging us to use the new SharePoint PowerShell commands.

STSADM is located in your SharePoint (2007) installation directory, which is also often referred to as the SharePoint HIVE.

%COMMONPROGRAMFILES%\Microsoft Shared\Web Server Extensions\12\bin

or:

C:\Program files\Common Files\Microsoft Shared\Web Server Extensions\12\bin

First tip - setting your Path

If you want to execute an STSADM command you have have to launch a command prompt (because it is a command line tool) and then navigate to the HIVE before then typing in the STSADM command.

A much better approach is to add the SharePoint HIVE to your operating systems Environment PATH variable. The net result of this will be the ability to execute STSADM from any location (it saves you navigating to the HIVE!).

  1. Connect to your SharePoint Server
  2. Load up "System Settings" (Right Click Computer and select Properties)



  3. Click the Advanced tab on System Settings
  4. Click Environment Variables




  5. On the Environment Variables dialog select the Path variable under System Variables. Click Edit
  6. .

     

  7. On the Edit System Variable dialog click the Variable Value field and press END on your keyboard
  8. .
     

  9. At the end of the Variable Value field enter the following
    • ;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN
    • Note the semi colon at the beginning
    • Also note the number 12, this the path for SharePoint 2007 or WSS 3.0. Change this to 14 for SharePoint 2010
  10. Click OK on all of the open dialogs
  11. Test by opening a NEW command prompt and typing in "STSADM -help"

< Prev - 1 | 2 | - Next >



Learn more about SharePoint



Sponsor Information




Copyright (c) 2010-2017 Edgewood Solutions, LLC All rights reserved
privacy | disclaimer | copyright | advertise | contribute | feedback | about
Some names and products listed are the registered trademarks of their respective owners.


MSSharePointTips.com | MSSQLTips.com