Cannot run system32 commands outside of system32 path

Hello,

I am having some very strange issues, I can't seem to run commands that are in system32, when I open up command prompt and type in something like..

ipconfig

It cannot find the command, but if I switch to C:\windows\system32, and type it.. it works.

My Path is set correctly, it has ;%SystemRoot%\system32 in there, and it shows in SET.

Any idea why this is caused?
mirdeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SISAntCommented:
make sure that your systemroot is set correctly.

type in cd %systemroot% to make sure it takes you to the C:\windows folder,

if its wrong right click on my computer, properties, system variables in the advanced panel, and then the environment variables.

also, see if running the CMD as administrator makes a difference.
0
SjoerdvWCommented:
Very strange!
Just to be sure: what does "echo %systemroot%" say?
And can you run "%systemroot%\system32\ipconfig.exe"?
0
mirdeAuthor Commented:
doing an echo %systemroot% shows C:\windows as I would expect it.

My full PATH= is..

C:\Program Files\Windows Resource Kits\Tools\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PROGRA~1\Inovis\ODBC5~1.2DR;C:\Program Files\Windows Imaging\;"C:\Program Files\PKWARE\pkzipc";C:\Program Files\Inovis\ODBC 6.0 Drivers

Doing a manual SET PATH="C:\Program Files\Windows Resource Kits\Tools\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PROGRA~1\Inovis\ODBC5~1.2DR;C:\Program Files\Windows Imaging\;"C:\Program Files\PKWARE\pkzipc";C:\Program Files\Inovis\ODBC 6.0 Drivers"

Everything started working.. strange..?
0
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

Michael DyerSenior Systems Support AnalystCommented:
You might try to reenter the path in the environment variables.  Open Control Panel-Performance and Maintenance-System (or right-click on My Computer and choose "Properties"). In the box that opens, click the "Advanced" tab to obtain the dialog box shown below. Next, click the button "Environment Variables".   Under System variables, click on Path and re-enter the complete path string.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SjoerdvWCommented:
Yup... Strange!
0
mirdeAuthor Commented:
re-entering the environment variables worked, very strange.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.