36

A user of ours cleared their path, thanks to some directions on the internet.

What is the default path, I am a developer so I have tons of extra stuff in mine, what should my user get on a plain jane one?

  • @Synetech does that really have anything to add to this question? – DevelopingChris Dec 13 '15 at 16:56
  • this one superuser.com/questions/193368/… (at risk of being closed as a duplicate) says %CommonProgramFiles%\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\ i.e. it mentions a WindowsLive directory – barlop Sep 23 '16 at 5:28
21

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.

  • this pretty much covered the bases – DevelopingChris Mar 27 '10 at 16:47
  • 3
    PowerShell path is included in default system path in W7 – climenole Jul 30 '12 at 17:18
  • this one you were keen to close superuser.com/questions/193368/… has a slightly different one to the one you state, e.g. it has a WindowsLive directory, though you didn't give any critique of it – barlop Sep 23 '16 at 5:30
30

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).

1

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

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

1

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\

I'm not 100% on the first item in the list but it seems to be something to do with bluetooth. Not sure why that should need to be in the path though.

  • 7
    PC Connectivity Solution was definitely added by a 3rd party – heavyd Mar 26 '10 at 0:09
  • 1
    I'm not gonna -1 cuz at least you answered, most people brushed by and didn't bother to copy their var and just paste it in an answer, +1 for effort. – DevelopingChris Mar 27 '10 at 16:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.