1、win + R输入regedit打开注册表 2、计算机\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment 3、双击对应变量即可获取其值