adding the stsadm command to the path statement so I don't have to navigate to the directory in dos

Posted on 2009-07-06
Last Modified: 2012-05-07
Super simple but I can't find the solution on line so how do I add the path statement to windows server 2003 so that i can access stsadm from the root of c in Dos . I tried to add it to the path but maybe I am not doing something correct. I just want to be able to open cmd prompt and type stsadm and have it launch and I don't want to see the long path in the prompt either. Please help I know this is simple but I am having a hard time with this.
Question by:boogieman01
LVL 15

Expert Comment

ID: 24786315
right click my computer then properties then the advanced tab then the enviornment variables button at the bottom. Then in the dialog box select path click edit and in the variable box add C:\Program Files\Common Files\Microsoft Shared\web server extensions\12
Then click ok and you will be able to type stsadm at any command prompt

Author Comment

ID: 24786818
That is what I already did and I am not sure why it is not working. I just receive an error stsadm.exe is not recognized as an internal or external command. I edited the path and placed a semi colon after the path statement that was already there. Below is an example

;c:\program files\common files\microsoft shared\webserver extensions\12 then rebooted and still I get that error
LVL 15

Expert Comment

ID: 24788780
is that a copy and paste of what you have in your path variable? Cause you don't have a space between web and server you have webserver which will cause an error
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.


Accepted Solution

ou_dober earned 500 total points
ID: 24789127
Go to a command prompt, copy and paste, and hit enter:

PATH = %PATH%;"C:\Program Files\Common Files\Microsoft Shared\web server extensions\12"

This will append the stsadm directory to to default PATH settings of the OS.  You needs add "  " when adding directories with spaces.

LVL 15

Expert Comment

ID: 24792346
It didn't work for me, I still get "stsadm is not recognized..."
LVL 15

Expert Comment

ID: 24793751
do you have sharepoint installed on that machine? If you don't have sharepoint and you don't have the path to the 12 hive then this won't work. Can you open windows explorer and actually navigate to the path above and see the stsadm.exe file?

Author Comment

ID: 24795199
It works I I place the command in the dos prompt but I have not tied it in windows so I will try again in windows. Yeah I have Sharepoint on this system

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
General InfoPath Question - SharePoint 2010/2013 2 71
Redesign the sharepoint site. 9 66
Sharepoint KB 2 75
sharepoint list help 2 28
As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question