Windows注册表中的环境变量存储在哪里? [英] Where are environment variables stored in the Windows Registry?

查看:62
本文介绍了Windows注册表中的环境变量存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要远程访问环境变量.为此,我认为最好的方法是从注册表中读取它.

I need to access an environment variable remotely. To do this, I think the best way is to read it from registry.

Windows注册表中存储了哪些环境变量?

Where are environment variables stored in the Windows Registry?

推荐答案

在这里将它们存储在Windows XP 通过 Windows Server 2012 R2:

Here's where they're stored on Windows XP through Windows Server 2012 R2:

HKEY_CURRENT_USER\Environment

系统变量

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

这篇关于Windows注册表中的环境变量存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆