Use this Fundamentals Topic to understand Registry structure and evidence boundaries. Use the deeper Windows → Registry branch for hive-by-hive administration, regedit, reg.exe and Registry troubleshooting.
Windows Registry
The Windows Registry is a hierarchical database used by Windows, services and applications to store configuration and state. Data is organized into keys/subkeys and named values beneath root-key views such as HKEY_LOCAL_MACHINE (HKLM), HKEY_CURRENT_USER (HKCU) and HKEY_USERS (HKU).
1. Which key and value does the setting live in (documented path)?
2. Back up first: reg export.
3. Read: Get-ItemProperty.
4. Change with a policy or supported tool where possible.
5. Verify the application picks it up (restart if needed).
setting → hive → key → value (type and data) → read by Windows or the application
Verify policy ownership and read/effective runtime state in the consuming process or service.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Applications can cache configuration, read it only at startup, use policy layers, or ignore unsupported direct Registry changes. Therefore “the value is correct in regedit” is configuration evidence only. The next evidence is that the intended consumer read the correct view and changed runtime behavior accordingly.
Operational checks for Windows Registry — Stored value is not effective state: Anchor the same process/service/object, security context and effective runtime state; registry or GUI configuration alone is not closure.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Safe Registry verification order Verify boundary
1. Capture the full path, value name, type and data.
2. Confirm user context and whether a 32-bit or 64-bit process consumes the value.
3. Determine whether Group Policy/MDM/application policy owns the setting.
4. Export/back up the smallest relevant key before any manual edit.
5. Change one value only when the configuration method is supported.
6. Reload/restart the consumer as required and verify the actual behavior.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- A key is a container/node; a value is a named data entry stored under a key.
- HKCU is a view of the currently loaded user profile hive under HKU.
- HKCR is a merged compatibility view related to class/file-association registration rather than an independent ordinary hive file.
- Registry values can be strings, expandable strings, integers, multi-strings or binary data.
- 32-bit and 64-bit processes can see different Registry views for redirected locations.
- Stored configuration does not prove a service/application has reread or accepted it.
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 permissions
ReferenceWhat it is1 section · depth on demand
Registry structure
The Registry is a tree. Each node is a key, which can contain subkeys and named values. Values carry typed data such as strings, expandable strings, DWORD/QWORD integers, multi-string lists or binary data. Windows exposes root-key views such as HKLM and HKCU so applications and administrators can locate machine-wide, per-user and other configuration classes.
ReferenceImportant terms & boundaries2 sections · depth on demand
Hives and root-key views
A Registry hive is a logical group of keys, subkeys and values backed by files that Windows loads for the system or a user profile. Root names such as HKLM/HKU expose these loaded structures. HKCU points at the currently active user profile context, while HKCR presents merged class-registration information. This matters when a value appears in one tool/context but not another.
In depth
The Windows Registry is a hierarchical database of configuration for the OS, drivers, services, applications and users. Group Policy, installers and many tools ultimately write to it.
| Hive | Contents |
|---|---|
| HKLM | Machine-wide settings (software, services, drivers, security) |
| HKCU | Current user's settings |
| HKU | All loaded user profiles |
| HKCR | File associations and COM (merged view) |
| HKCC | Current hardware profile |
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters'
reg export HKLM\SOFTWARE\Vendor C:\Backup\vendor.reg
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
Back up keys before editing, prefer Group Policy or Intune for managed settings, and watch autorun keys (Run, RunOnce, services) — they are common persistence locations for malware.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Windows Fundamentals → Windows Registry. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Registry root-key quick reference
Common root-key views and what they represent.
| Root | Typical meaning | Important boundary |
|---|---|---|
| HKLM | machine-wide system/software configuration | applies by key semantics; not every process rereads live |
| HKCU | current user’s profile-backed configuration view | depends on the user context |
| HKU | loaded user profile hives | includes multiple user/security contexts |
| HKCR | merged class/association registration view | compatibility/merge semantics matter |
| HKCC | current hardware-profile view | not a generic machine configuration root |