Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Windows Registry

Direct answer

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).

When to use this

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.

First 30 seconds

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).

Operational verification

setting → hive → key → value (type and data) → read by Windows or the application

Evidence · next step

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
Common mistakes
Stored value is not effective state

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.

Platform / version applicability
Microsoft Windows
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformMicrosoft Windows
Scope / prerequisiteUse this Fundamentals Topic to understand Registry structure and evidence boundaries. Use the deeper Windows → Registry…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key 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
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.

HiveContents
HKLMMachine-wide settings (software, services, drivers, security)
HKCUCurrent user's settings
HKUAll loaded user profiles
HKCRFile associations and COM (merged view)
HKCCCurrent 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docMicrosoft Windows current

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%
Terminology layer

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.

Aliases that resolve here
windows registry basicsregedit registryHKLM HKCUregistry hives keys valueswindows registry database
Embedded reference data

Quick lookup tables

Registry root-key quick reference

Common root-key views and what they represent.

RootTypical meaningImportant boundary
HKLMmachine-wide system/software configurationapplies by key semantics; not every process rereads live
HKCUcurrent user’s profile-backed configuration viewdepends on the user context
HKUloaded user profile hivesincludes multiple user/security contexts
HKCRmerged class/association registration viewcompatibility/merge semantics matter
HKCCcurrent hardware-profile viewnot a generic machine configuration root
Confirmation

Confirm action

Continue?