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?
 
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
 
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
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
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
 
SjoerdvWCommented:
Yup... Strange!
0
 
mirdeAuthor Commented:
re-entering the environment variables worked, very strange.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.