PDF download Download Article PDF download Download Article

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.

  1. If your "command prompt" path is correct, it will show the following path. "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;"
    Advertisement
    • "%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;" and paste it in System variables -->Path.
  2. It will show the following path. Now you can run any commands in your "command prompt".
  3. Advertisement

Community Q&A

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

      Video

      Tips

      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,143 times.

      Is this article up to date?

      Advertisement