Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to store Registry data for All Users

I would like to share a small amount of data between All Users in the Windows Registry. For shared read and write access 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.

like image 359
Keith Maurino Avatar asked Jun 17 '09 18:06

Keith Maurino


People also ask

Where is registry data stored?

The registry files are stored in the %WINDIR% directory under the names USER. DAT and SYSTEM.

Do registry changes apply to all users?

The HKEY_LOCAL_MACHINE\Software\Classes key contains default settings that can apply to all users on the local computer. The HKEY_CURRENT_USER\Software\Classes key contains settings that override the default settings and apply only to the interactive user.

Is the registry stored on the hard drive?

Because this information is stored in the Registry on your hard drive, Windows has this information available each time it boots up. The registry, though, is not only for operating system settings. User preferences and application settings are stored in the Registry as well.

How is data stored in the registry?

The registry is a hierarchical key-value storage system, that keeps its elements in a tree-like structure, much like a file system. The values have data types so not only strings but integers and binary data can be stored as well. The “folders” in the registry are called keys.


2 Answers

You can put all users data in HKEY_LOCAL_MACHINE hive, 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.

like image 78
Factor Mystic Avatar answered Oct 12 '22 07:10

Factor Mystic


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

like image 29
Andy Mikula Avatar answered Oct 12 '22 07:10

Andy Mikula