HKEY_USERS
Cheat sheet · https://pcornel.dk/topic.php?topic=3033
Answer
HKEY_USERS (HKU) contains the loaded profiles of all users on the machine, keyed by SID, plus .DEFAULT for the system account. HKCU is a pointer to the current user's entry here.
Remember
- HKU contains loaded user profiles keyed by SID.
- Load an offline user's hive with reg load.
- Always unload after editing.
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 permissionsreg query HKU— top-level keys
Verify in this order
HKU root key → subkeys → values → read by Windows and applications
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=3033