What if your command prompt doesn't run any more commands? What if you type a "Net User" command in your command prompt to check the "current username", but it shows an error message? To solve this problem, change the command prompt path. This article will show you how.
Steps
-
Hold the Windows key and press R.
-
Check your "command prompt" path by typing "path". If your "command prompt" path is correct, it will show the following path. "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;"Advertisement
-
Change your "command prompt" path.
- "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem".
- Right Click My Computer --> Properties --> Advanced System Settings--> Environment Variables --> System variables -->Path -->Edit -->Variable value
- "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem".
-
Copy the following the path.
- "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;" and paste it in System variables -->Path.
-
Click ok and open the "command prompt" type 'path'. It will show the following path. Now you can run any commands in your "command prompt".
-
Type 'Net User' command in "command prompt".
Advertisement
Community Q&A
Search
-
QuestionI had to delete path in system variables unfortunately. How can I get that back?Community AnswerMake a shortcut for command. Start, type command, right click, copy, shortcut, and paste to desktop.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Video
Tips
- Edit only "System variables -->Path". Do not edit "user variables"-->path.Thanks
Submit a Tip
All tip submissions are carefully reviewed before being published
Thanks for submitting a tip for review!
Advertisement
About This Article
Thanks to all authors for creating a page that has been read 47,161 times.
Advertisement