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

  1. 1
    Hold the Windows key and press R.
  2. 2
    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
  3. 3
    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
  4. 4
    Copy the following the path.
    • "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;" and paste it in System variables -->Path.
  5. 5
    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".
  6. 6
    Type 'Net User' command in "command prompt".
  7. Advertisement

Community Q&A

  • Question
    I had to delete path in system variables unfortunately. How can I get that back?
    Community Answer
    Community Answer
    Make a shortcut for command. Start, type command, right click, copy, shortcut, and paste to desktop.
Advertisement

About This Article

Tested by:
wikiHow Technology Team
wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 38,664 times.
How helpful is this?
Co-authors: 7
Updated: January 26, 2018
Views: 38,664
Categories: Command Prompt
Advertisement