Windows 7 全新安装的默认 PATH 环境变量设置是什么

Dev*_*ris 39 windows-7 path

由于互联网上的一些指示,我们的用户清除了他们的道路。

默认路径是什么,我是一名开发人员,所以我有很多额外的东西,我的用户应该在简单的 jane 上得到什么?

小智 32

我刚刚在虚拟机中安装了 Windows 7 Enterprise SP1-U(x64 英文)。我可以将以下内容证明为默认Path环境变量。请注意,我没有在虚拟机中安装任何东西(甚至没有安装“附加程序”、“驱动程序”或“工具”)。

默认系统Path环境变量(不一致的大小写按原样):

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
Run Code Online (Sandbox Code Playgroud)

没有默认的用户Path环境变量(即,没有设置这样的变量)。


hea*_*vyd 22

根据这个 MVP,在 Vista 上它是:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
Run Code Online (Sandbox Code Playgroud)

我会假设 Windows 7 也是\Windows\System32\WindowsPowerShell\v1.0\如此。我也有作为我的第一个条目之一,因此您可能也想添加它,因为 PowerShell 随 Windows 7 一起提供。

  • PowerShell 路径包含在 W7 的默认系统路径中 (3认同)