Pcornel
Windows · Registry

HKEY_CLASSES_ROOT

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

Back to the Topic

Answer

HKEY_CLASSES_ROOT (HKCR) holds file associations and COM class registrations. It is a merged view of HKLM\Software\Classes and HKCU\Software\Classes, with user settings taking priority.

Remember

  • HKCR merges HKLM\Software\Classes and HKCU\Software\Classes.
  • User entries override machine entries.
  • Export before changes.

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
  • reg query HKCR — top-level keys

Verify in this order

HKCR 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=3032

Confirmation

Confirm action

Continue?