HKEY_CURRENT_USER
Cheat sheet · https://pcornel.dk/topic.php?topic=3031
Answer
HKEY_CURRENT_USER (HKCU) holds the logged-on user's settings, such as desktop, environment variables and application preferences. It is stored in that user's NTUSER.DAT profile hive.
Remember
- HKCU is stored in the user's NTUSER.DAT.
- It loads at logon.
- Policies under HKCU\Software\Policies override.
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 'HKCU:\' -ErrorAction SilentlyContinue— top-level keys
Verify in this order
HKCU 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=3031