The Computer Oracle

What is the default PATH environment variable setting on fresh install of Windows 7

-------------------------------------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
-------------------------------------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Orient Looping

--

Chapters
00:00 Question
00:27 Accepted answer (Score 22)
00:48 Answer 2 (Score 32)
01:33 Answer 3 (Score 2)
01:54 Answer 4 (Score 1)
02:17 Thank you

--

Full question
https://superuser.com/questions/124239/w...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows7 #path

#avk47



ANSWER 1

Score 32


I just finished installing Windows 7 Enterprise SP1-U (x64 English) in a virtual machine. I can certify the following as the default Path environment variables. Note that I haven't installed anything (not even the "additions", "drivers", or "tools") into the virtual machine.

Default system Path environment variable (the inconsistent capitalization is as-is):

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

There is no default user Path environment variable (i.e., no such variable was set).




ACCEPTED ANSWER

Score 22


According to this MVP, on Vista it was:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

I would assume the same for Windows 7. I also have \Windows\System32\WindowsPowerShell\v1.0\ as one of my first entries so you might want to add it as well since PowerShell was shipped with Windows 7.




ANSWER 3

Score 2


Sorry, mine's no longer "plain jane" but I've removed the obvious added items (this is on 64 bit, remove the (x86) bits if you're on 32):

PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\



ANSWER 4

Score 1


There's really no such thing as a default Path; it changes as software and devices are installed/removed. However, at a bare minimum, your Path should contain:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\