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

查看:32
本文介绍了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 上的存储位置XPWindows Server 2012 R2:

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

HKEY_CURRENT_USEREnvironment

系统变量

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerEnvironment

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

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