Solved running CMD from C:\windows\system32

bigE

New Member
Messages
4
Ok so first off I am a stupid 15 year old so please dont get mad if this question is stupid.
My problem is that when I hit the windows key and R the Run app pops up and I type cmd however what happens is it runs from C:\Users\Evan instead of C:\windows\system32 can some one please help me fix this?
A video would be very helpful or just detailed typing THANKS!


Note: The reason I ask is because before when it ran from C:\windows\system32 the commands like ipconfig worked now they dont running from C:\Users\Evan
 
Do you get the same result or the correct result when clicking on the Command Prompt icon in Start, All Programs, Windows System? The right-click context menu has other choices, sometimes have to choose Run as Administrator. Do you have administrative rights for your log-in?
 
mine does the same thing . hit the windows key to open start screen type in cmd ,it will open search ,when you see the cmd icon,right click on it and chose run as administrator

also your utube video want us to sign in
 
Note: The reason I ask is because before when it ran from C:\windows\system32 the commands like ipconfig worked now they dont running from C:\Users\Evan
ipconfig should work every where

It is a default behaviour if you run it from the RUN box.
Press Win+X and type A for Admin command prompt. Type C for Regular Command prompt
and it will default to C:\Windows\System32

EDIT: FYI, not always you want to run the command in C:\Windows\System32. Normally it is more convenient to run the command and default to the current folder.

If you wish, you can copy and paste these lines below to a text file and save it as .reg file. Double click to merge into the registry then you have a right click context menu to Open the Admin command in the folder you are currently in:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="Admin Command Here"
"NoWorkingDirectory"=""
"HasLUAShield"=""
"Position"="Top"

[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""


Your right click menu should have an entry as shown:

a.png
 
Last edited:
All the Win7 and Win8/8.1 computers I've worked on successfully open the Command Prompt window and run the ipconfig commands at the C:\Users\username> prompt, don't have to change Folders as Windows knows where to find the commands. Seems to be quite normal and doesn't appear to make a difference whether operating system files are hidden or not. It's quite possible for built-in/Windows command not to work if there's infections on the computer, could be a virus, malware, scareware, fake advertising or as NPR/National Public Radio named it a few years ago, malvertising. It's not unknown for infections to disable things to keep the user from removing them or finding solutions to do so.
 
ok i see ill just add to task bar i guess i like that idea because i can find the C:\windows\system32 in a search so ill just make that shortcut to it instead of using RUN
 
:winkey: + X ► Command Prompt (Admin)

(bigE: doesn't help us help you when your system specs say 'unknown'!)
 
I was wrong in my first post ,If I put ipconfig in run ,it just quickly flashes on my screen , but simple to open cmd, go to start screen type in CMD ,the search will open and there it is ,just click it ,and use it
 
Back
Top