Pcornel
Windows · Registry

HKEY_CURRENT_USER

Cheat sheet · https://pcornel.dk/topic.php?topic=3031

Back to the Topic

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 values
  • reg query <key> /s — query in CMD
  • reg export <key> <file>.reg — back up a key
  • Get-Acl 'HKLM:\<path>' | fl — key permissions
  • Get-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

Confirmation

Confirm action

Continue?