Use this when machine-wide settings, services or drivers are involved.
HKEY_LOCAL_MACHINE
HKEY_LOCAL_MACHINE (HKLM) holds machine-wide configuration: hardware, drivers, services, installed software and security settings, stored in the SYSTEM, SOFTWARE, SAM and SECURITY hives.
1. Is the setting per machine or per user? (HKLM holds machine-wide settings, services, drivers and software.)
2. Back up the key before changing it.
3. Read the value with Get-ItemProperty / reg query.
4. For another user: load or use HKU\<SID>.
5. Verify the program sees the change.
HKLM root key → subkeys → values → read by Windows and applications
Context & applicabilityCommon mistakes · platform/version boundaries
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 Common mistakes Narrow the fault
- Editing HKLM without backup or change control.
Step 2 Where it fails Narrow the fault
Failure analysis for Registry → HKEY_LOCAL_MACHINE follows the Windows chain of components: target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence.
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.
- Changing HKLM requires admin rights.
- Policies may enforce values.
- It maps to SYSTEM, SOFTWARE, SAM and SECURITY hives.
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 permissionsGet-ChildItem 'HKLM:\' -ErrorAction SilentlyContinue— top-level keys
ReferenceWhy it matters1 section · depth on demand
Common paths
| Path | Use |
|---|---|
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run | Startup programs (all users) |
HKLM\SYSTEM\CurrentControlSet\Services | Services and drivers |
HKLM\SOFTWARE\Policies | Machine Group Policy settings |
HKLM\SYSTEM\CurrentControlSet\Control\Lsa | Authentication settings |
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
HKEY_LOCAL_MACHINE (HKLM) holds machine-wide configuration:
| Subkey | Content | Hive file |
|---|---|---|
| SYSTEM | Services, drivers, control sets | %SystemRoot%\System32\config\SYSTEM |
| SOFTWARE | Installed software, Windows settings | config\SOFTWARE |
| SAM | Local accounts (protected) | config\SAM |
| SECURITY | LSA secrets, policies (protected) | config\SECURITY |
| HARDWARE | Volatile, built at boot | — |
HKLM\SOFTWARE\Policies holds GPO-delivered machine policies; HKLM\SOFTWARE\WOW6432Node holds 32-bit application settings on 64-bit Windows.
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 Registry → HKEY_LOCAL_MACHINE. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry · confidence 94%