When developing sharepoint you cannot avoid using STSADM from time to time. In my case I got tired of navigating to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN to be able to run STSADM commands. If you find some of this familier you can add the above path to your Environment variables and you’ll gain access to STSADM no matter where in Command Prompt you are.
This is what you do.
- Start > Controlpanel > System > Advanced tab > Environment variables
- On the Systemvariables section find path
- Select edit
- In the variable value field add: “;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\” – BE SURE TO ONLY ADD AND NOT OVERWRITE!
- Click OK, OK and OK
- Reboot your system
- From now on you’ll have access to STSADM from anywhere in your command prompt