HKEY_CLASSES_ROOT
Cheat sheet · https://pcornel.dk/topic.php?topic=3032
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 valuesreg query <key> /s— query in CMDreg export <key> <file>.reg— back up a keyGet-Acl 'HKLM:\<path>' | fl— key permissionsreg 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