9

I've accidentally messed up the PATH variable in Windows and I'm wondering if anyone could provide the default for me.

Timtech
  • 1,224
  • 2
  • 19
  • 30
  • See http://superuser.com/a/113656 for recovering the last good known configuration – bdukes Apr 01 '15 at 19:36
  • see same question on superuser: [what-is-the-default-path-environment-variable-setting-on-fresh-install-of-windows](https://superuser.com/questions/124239/what-is-the-default-path-environment-variable-setting-on-fresh-install-of-window) – TT-- Jun 16 '17 at 21:39
  • I have just created a new user account and its user path only contained `%USERPROFILE%\AppData\Local\Microsoft\WindowsApps`. (I'm running windows 11) – Dariush Mazlumi Sep 21 '22 at 21:39

2 Answers2

9

My freshly installed Windows 8.1 has the following value in PATH:

C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
Malcolm
  • 41,014
  • 11
  • 68
  • 91
Eric Brown
  • 13,774
  • 7
  • 30
  • 71
  • 5
    I had been using this solution for approximately two weeks with a majority of command line utilities still not working. Turns out that the `PATH=` part is **NOT** part of the path. If anyone else tries this solution by pasting it into your environment variable window (not command line) then you'll need to remove it. – Winter Oct 27 '14 at 02:37
  • @Winter That's a good point, I've edited the answer. – Malcolm Jun 10 '16 at 20:46
1
%JAVA_HOME%\bin;C:\oraclexe\app\oracle\product\11.2.0\server\bin;%ANT_HOME\bin;%JAVA_HOME%\bin;C:\Oracle\bin;C:\Informatica\9.1.0\DataTransformation\bin;C:\Informatica\9.1.0\clients\tools\datadirect;C:\Informatica\9.1.0\clients\DeveloperClient\bin;C:\Informatica\9.1.0\clients\java\jre\bin\server;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files (x86)\Perforce;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files (x86)\Lenovo\Access Connections\;C:\Program Files (x86)\Git\cmd

This is mine, I think you modify it based on the software you installed.

Jack Zhang
  • 304
  • 1
  • 9
  • 21
  • 1
    Always interesting to see what software screws up the PATH. That machine isn't controlled by the operating system, it's pwned by Ellison. – Hans Passant Nov 05 '13 at 01:36