windows 在哪里存储所有用户的注册表数据

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1008734/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 12:39:01  来源:igfitidea点击:

Where to store Registry data for All Users

windowsregistryuac

提问by Keith Maurino

I would like to share a small amount of data between All Users in the Windows Registry. For shared read and writeaccess between any user that logs into the machine or a service on the machine. Is there a location where this can be done? I have tried using "HKEY_USERS\.DEFAULT\Software\" but this seems to be blocked by the Vista UAC rules.

我想在 Windows 注册表中的所有用户之间共享少量数据。用于登录机器或机器上的服务的任何用户之间的共享读写访问。有没有可以做到这一点的地方?我曾尝试使用“HKEY_USERS\.DEFAULT\Software\”,但这似乎被 Vista UAC 规则阻止了。

回答by Factor Mystic

You can put all users data in HKEY_LOCAL_MACHINEhive, but you'll need to adjust the permissions on the key to in order to make it writable by all users, as your question states.

您可以将所有用户数据放在HKEY_LOCAL_MACHINEhive 中,但您需要调整密钥的权限以使其可供所有用户写入,如您的问题所述。

回答by Andy Mikula

HKEY_LOCAL_MACHINEshould be the place to store data between users. There's a good, short explanation hereabout which folders/hives are used for what.

HKEY_LOCAL_MACHINE应该是用户之间存储数据的地方。有一个很好的,简短的说明这里哪个文件夹/荨麻疹是用来做什么的。