Registry Architecture
Cheat sheet · https://pcornel.dk/topic.php?topic=3029
Answer
The registry architecture consists of root keys that map onto hive files on disk, containing nested keys with typed values. The kernel's configuration manager loads hives at boot and logon.
Remember
- Root keys map onto hive files on disk.
- Keys hold subkeys and typed values.
- Each key has its own permissions.
First checks
Get-ItemProperty 'HKLM:\<path>'— read valuesreg query <key> /s— query in CMDreg export <key> <file>.reg— back up a keyGet-Acl 'HKLM:\<path>' | fl— key permissionsGet-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Services'— example: services keys
Verify in this order
hive file loaded → root key → subkeys → values with type and data → consumer reads them
Where it usually breaks
First mismatch in target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3029