beginner
Hives, keys, and values
The data model behind HKLM, HKCU, and the registry editor view.
Official Microsoft docs
Closest official references related to this topic on Microsoft Learn.
Why it matters
If you only know the editor view, the registry feels arbitrary. Understanding hives and value types makes it much more predictable.
Mental model
The editor is a view; the real internals are hive-backed data structures that Windows loads and maps into logical namespaces.
How it works
- 1Each hive corresponds to a persistent configuration store.
- 2Logical roots such as HKLM and HKCU present those stores in a user-friendly way.
- 3Values are strongly typed and interpreted by the components that own them.
Key terms
- HKLM
- HKEY_LOCAL_MACHINE, the logical root for machine-wide configuration.
- HKCU
- HKEY_CURRENT_USER, the logical root for the active user context.
Machine-wide vs per-user settings
A system service typically reads from machine-wide configuration, while a desktop setting might live under the current user hive.
Common misconception
HKCU is not a physically separate universal concept; it is a mapping to the active user's loaded profile hive.
You should read next
Ranked from your current topic, related links, branch depth, and any active guided path.