How to use HKEY_LOCAL_MACHINE safely?
![]()
In this article you will find out:
- what is HKEY_LOCAL_MACHINE
- how to use it
- how to protect your data
Are you ready? Let's read!
HKEY_LOCAL_MACHINE (HKLM) is one of the most important registry hives that make up the overall Windows registry. HKLM contains the following data:
- Most of the information about the configuration of the software you have installed
- Information about the Windows operating system itself
- Information about detected hardware
- Information about device drivers
- Information about the boot configuration of your computer
In certain situations, the question may arise: how do I open HKLM? Let's figure it out.
1. How to use it
File location
To find HKEY_LOCAL_MACHINE, you can use the Registry Editor tool included with all Windows versions.
Open the Registry Editor and on the left side find HKEY_LOCAL_MACHINE.
Note: Sometimes you may need to collapse all open registry keys to find the HKEY_LOCAL_MACHINE hive.
Next, double-click HKEY_LOCAL_MACHINE to expand the hive. You can also use the small arrow on the left for this.
Subkeys
In the HKEY_LOCAL_MACHINE hive, you can see the following registry keys:
HKEY_LOCAL_MACHINE \ BCD00000000
HKEY_LOCAL_MACHINE \ COMPONENTS
HKEY_LOCAL_MACHINE \ SAM
HKEY_LOCAL_MACHINE \ SECURITY
HKEY_LOCAL_MACHINE \ DRIVERS
HKEY_LOCAL_MACHINE \ HARDWARE
HKEY_LOCAL_MACHINE \ SOFTWARE
HKEY_LOCAL_MACHINE \ SYSTEM
Keep in mind that these keys may be slightly different depending on your Windows version and computer configuration. For example, you will not always find the HKEY_LOCAL_MACHINE \ COMPONENTS key in newer versions of the system.
The HARDWARE subkey may be needed to determine the current BIOS version and vendor. You can also get information about the processor and other hardware devices here. The SOFTWARE section is the most commonly used section of the HKLM. Here, each program writes data to the registry so that the next time the application is opened, its specific settings can be applied automatically. Thus you don't need to reconfigure the program every time you use it.
HKLM also has private subkeys, so they cannot be viewed like other subkeys in the HKLM registry hive. This applies to the following:
HKEY_LOCAL_MACHINE \ SAM
HKEY_LOCAL_MACHINE \ SECURITY
The SAM section contains information about the Security Accounts Manager (SAM) databases for domains. Each database has users, group aliases, guest and administrator accounts, cryptographic hashes of each user's password, and more.
The SECURITY subkey is for storing the security policy of the current user and is associated with the security database of the domain in which the user is logged on.
To open the contents of a SAM or SECURITY key, the Registry Editor must be opened using a system account that has sufficient rights.
Microsoft offers free utilities such as PsExec that can open the Registry Editor with appropriate permissions to view these hidden keys.
Additional information
HKEY_LOCAL_MACHINE acts as a shortcut to a number of other sources of data about your computer; that is, it doesn't actually exist anywhere on the computer. In this case, no one can create additional keys in HKEY_LOCAL_MACHINE; it is simply impossible.
Neither you nor any installed program can create additional keys in HKEY_LOCAL_MACHINE.
HKEY_LOCAL_MACHINE is often abbreviated as HKLM. However, this is not always correct, since some programs, even tools available directly from Microsoft, do not allow you to shorten the hive in the registry paths. As a result, you may receive an error message when using the term "HKLM".
Make sure your data is safe
If your data is unexpectedly deleted, you can still recover it for a while using DiskInternals Partition Recovery. Don’t worry about data loss, as this program has a record of 15 years of successful data recovery. The program works on each of your hard drive partitions with many file systems: HFS, NTFS, FAT, ReFS, UFS, EXT2 / 3/ 4, ReiserFS, etc. You will get stunning results you wouldn't even dream of.
DiskInternals Partition Recovery can easily recover any type of data from a virus attack, reformatting, accidental or deliberate deletion, hard disk damage, operating system errors in various situations, etc. To use this software, you just need to download and install it: the built-in simple and convenient Recovery Wizard will do the rest for you. DiskInternals has developed a free promo version that you can use right now and get all the information you need about the program.
The instructions for using DiskInternals Partition Recovery are included below:
- 1. Download and install Partition Recovery and launch the Recovery Wizard. Select the partition on the hard drive that you want to recover, as well as the basic data search parameters.
- 2. The scanning process will start (fast or full); wait for it to complete without interrupting the process.
- 3. Free preview and recovery for each file can then be done.


- 4. To export recovered files, you just need to buy a license, then follow the detailed instructions of the Export Wizard.
The whole recovery process will not take you much time and effort, since everything here happens automatically. Technical support is also available for licensed customers. This feature will be active for 12 months after purchase.
Good luck, you will definitely succeed!
Related articles
- If explorer.exe class not registered error appears
- 0x80070005 in Windows 10
- Solutions for Faulty Hardware Corrupted Page Error
- If the Computer Freezes When Playing Games
- Error Code 0xc000014c
- Windows stop code 0xc000021a and How to Fix It
- How to Fix Error Code 0xc0000001
- Page fault in nonpaged area Windows 10
- How to Fix Error Code 0xc0000428 BSOD on Windows?⠀
- How to fix unmountable boot volume
- How to Fix the Specified Disk Is Not Convertible
- What should you do if laptop speakers are not working?
- How to fix the 0x0 0x0 Error Code in Windows 10/11
- Solving the DDE Server Window Error during Shutdown on Windows PCs
- How to fix Update Error Code 0x8007001F in Windows 10⠀
- How to Fix Error Code 0x80070422 in Windows 10⠀
- Fix 0x80070002 Windows Update Error in 2025
- Hard Drive Won't Boot in Windows 10/8/7? How to Fix It in 2025
- Start Menu & Taskbar Not Working on Windows 10: A Comprehensive Guide to Fix It
- How to Fix the “Critical Structure Corruption” Error in Windows 10 and Recover Data
- How to Fix DDE Server Window Error Preventing Shutdown on Windows PCs
- Enabling Secure Boot in User Mode: A Step-by-Step Guide to Fix the Issue
- How to Fix 'Download Error 0x80248007' on Windows: A Complete Step-by-Step Guide
- Repair a Partition Table in Windows 10 and Rebuild It
- Fix 0x80080008 Windows Update Error in 2026
- How to Fix the Requested Operation Requires Elevation Error on Windows 10/11
- Here is how to fix Wldcore.dll issues
- How to fix black screen with cursor in Windows 10/11 in 2025?
- How to Use Win32 Priority Separation
- Fix user profile service sign-in failure on Windows10 now!
- The folder is empty but files are still there| Windows10
- Unlock: The drive where Windows is installed is locked
- Partition loss problems on Windows 10?
- Monitor won’t turn on? The best solutions are here!
- Failed to enumerate objects in the container
- Error Code 0xc0000005 in Windows 10? Fix it!
- How To Fix Windows 10 Update Error 0xc1900107?⠀
- Cyclic Redundancy Check Data Error - Solve It In 2025!
- Wireless Mouse is Not Working? Fix it Now!
- Windows won't boot: what should you do in such a case?
- Windows could not perform the requested operation? Fix it!
- What should you do if Windows 10, 11 settings won't open?
- Windows 10 is not detecting a second monitor
- Windows 10 freezing 2025 fix
- [Windows 10, 11] There was a problem resetting your PC error
- What should you do if taskbar won't hide?
- If you get “store data structure corruption” problem
- If you get the Stop Code Memory Management BSOD Error
- Side by side configuration is incorrect
- What should you do if sound is not working in Windows 10, 11?
- Here is how to fix pr_connect_reset_error
- How to deal with the NET HELPMSG 2182 error
- If you get “No Audio Output Device is Installed” error
- If the “NETIO.SYS” error appears
- If you get a non system disk or disk error message
- Here Is How To Fix Net::Err_Cert_Date_Invalid Issue
- Monitor keeps going black
- Mouse scroll wheel jumps
- Mouse Double clicks? Fix it Now!
- MACHINE_CHECK_EXCEPTION error occurs: your actions
- What Should You Do if the Laptop Camera is Not Working?
- What Should You Do if the Laptop Microphone is Not Working?
- If the program isn't closing: how to force quit?
- Best ways to disable startup programs in Windows 10
- How to fix error code 0x80070035?
- Here is how to disable Cortana without any harm to your data
- What should you do if headphones are not working in Windows 10?
- FTDISK_INTERNAL_ERROR? Fix it!
- Fix Windows 10 error code 0x800704cf now
- Fix Windows 10 error code 0x8000ffff now
- Fix broken registry items in 2025
- Here is how to fix file system error -805305975
- File Explorer not opening: how to fix it?
- Everything you should know about error code 0xc1900101
- Windows Explorer Keeps Crashing. What to do next?
- Error Code: 224003. Fix it Now!
- 0x80070003 issue
- If you get error 0x80071ac3 code
- Computer randomly restarts
- Computer turns on by itself
- Clear RAM on Windows 10
- What should you do if Chrome keeps crashing Windows 10, 11?
- Can't delete a file
- What to do if Bluetooth is Not Working in Windows 10, 11
- Audio Services not responding: fix it now!
- Fix 2026: Windows Update Error code 0x80070490
- [Solved!] Error code: 0xc004c003
- How to Fix Windows Update Error 0xc19001e1⠀
- 0xc0000185 error
- 0xa00f4244 error occurs: your actions?
- Fix Windows 10 Update Error 0x8024a105 in 2026
- Error 0x80240034 in Windows Update - How to Fix It (Solved)
- Fix error 0x80131500 now!
- What to Do in Case of 0x803f7001 Windows 10, 11 Error
- How to fix Windows Update Error 0x800703e3⠀
- FIX: Windows Defender error code 0x800704ec⠀
- 0x80070570 error occurs: your actions
- How to get rid of error 0x80042302
- Methods to Fix Stop 0x000000f4 Blue Screen Error [2026]⠀
- FIX: Windows Cannot Install Required Files 0x8007025D⠀
- [Solved!] My computer stopped working. How to fix it?
- My computer will not turn on but has power
- Here is How to Update NVIDIA Drivers in Windows 10, 11
- Can't Restore Mac from Time Machine
- What to Do if Chrome OS is Missing or Damaged?
- What to Do if YouTube Audio is Not Working?
- Windows 10, 11 Start Menu Critical Error
- Windows delayed write failure
- How to fix Kernel32.dll error
- BOOTMGR is compressed
- Partition Recovery replaced Fat Recovery
- Blue screen 0x00000024 error on Windows? Solve it!
- How to fix the Windows 10, 11 that won't shut down
- You need to format the disk in drive X: before you can use it
- Fatal device hardware (0x800701E3) error
- How to disable MS compatibility telemetry on Windows10
- Show hidden files in Windows 10
- If Task Manager won't open on Windows
- If the directory name is invalid
- If Windows 10, 11 stuck before login screen
- The requested resource is in use error in Windows 10
- If a black screen appears after login in Windows 7
- If you get UNEXPECTED KERNEL MODE TRAP error
- Windows could not start because the following file is missing
- Reset to device,\device\raidport0
- Windows error 0xc00000e: how to fix it
- Right-click not working
- Windows 10 file sharing not working
- Code Kmode Exception Not Handled
- If “Windows key not working” issue appears
- How to deal with rgss202j.dll error?
- Runtime error r6025
- Why does wdf01000.sys BSOD error occur on my computer?
- This File Does Not Have A Program Associated With It
- Fix Windows 10 green screen error now!
- When network drive is not showing
- When PC getting stuck in resetting
- If you get an inaccessible boot device error
- The Invalid partition table error on Windows 10, 11
- Remove the dual-boot menu
- Insert your Windows installation or recovery media error
- If you get Path not found C:\boot
- Process1_initialization_failed issue
- “Is it possible to fix the reallocated sector count issue
- What should you do if netwtw06.sys error occurred
- Please login with administrator privileges and try again
- What to do with the kernel power 41 error
- Kernel mode heap corruption occurs: what you can do
- Fix 0xc00000e9 error in Windows! The best solutions
- [Solved!] Folder access denied? 4 best methods!
- Drive is Not Accessible? You Can Fix It!
- The 0x800f0922 error in Windows 10
- A 0x0000009f error in Windows 10
- If you get 0xe0000100 error code
- Fix a corrupted user profile on Windows 10
- If you get Failed to Enumerate Objects in the Container error
- Critical error your Start Menu isn't working
- Issue: disk offline signature collision
- How to deal with error code 0x80070020: workable solutions only
- If “Error Code 0x80004005. Unspecified error” appears in 2026
- Code 45 in 2022
- If you get DISM Error 87
- What does event id 1000 mean?
- Fix Windows Update error 0x80080005⠀
- How to Deal with Error Code 0x80004002 in Windows 10?
- Bad pool header and how you can deal with it in 2026
- 0x80240fff in Windows 10⠀
- If 0xc0000098 error appears
- If you get 0xc0000022 application error
- If A disk read error has occurred in 2026
- Fix Windows 10 Error code 0xc0000034⠀
- If a 0x0000007a error appears
- 6 best ways to fix error code: 80070103
- What should you do when Boot Manager failed to find OS loader
- 0x00000109 Error Blue Screen - 5 Steps to Fix it [2026]⠀
- If you get the error code 0x80080005
- System thread exception not handled (bcmwl63a.sys)
- Learn how to deal with bad pool caller error in Windows 10, 11
- Secure your data while dealing with 2000-0151 error
- FIX: Error 0x8024001 in Windows 10/11 Update⠀
- Windows Update Error 0x80070424
- What should you do if 0xc0000409 error occurs?
- What to do with the Code 19 error
- Fix: Windows Update error code 0x800706ba in Windows 10⠀
- How to Fix Windows Store Error 0x80073cf9?⠀
- Fix error 0xc004f074 in Windows 10⠀
- What should you do in case of 0xc000012f error?
- Everything you need to get rid of 0x80072ee2 error consequences
- 2000-0146 error occurs: your actions?
- 0xc1900223 error occurs: your actions?
- How to fix Windows Store error code: 0x803fb005?⠀
- 0xc0000017 error occurs: your actions
- What should you do in case of 0x80070780 error?
- 0x00000B error occurs: your actions
- What should you do in case of audio renderer error?
- Can't Remove Bluetooth Devices in Windows
- How to Remove a Partition on an External Hard Drive Safely Without Losing Data
- How to Cope with Dell Error Code 2000 0141
- Setup Was Unable to Create a New System Partition Issue
- The NTLDR is missing error
- 0xc0000225 Windows 10 Error Code - How to Fix it
- Fix blue screen stop 0x0000003b [2026]⠀
- Bootmgr Image is Corrupted - What to do next? 2026 fix
- No speakers or headphones are plugged in error message
- If you get NW-31297-2 error
- What to do if the PFN_LIST_CORRUPT error appears
- Application was unable to start correctly (0xc0000005)
- Speakers Failed to Play Test Tone in Windows 10? Fix it Now!
- Controller is Not Working on PC? Fix It Now!
- Pfn_list_corrupt in Windows 10? Fix it now!
- Server Message Block Protocol
- Here is How to Interact with HxTsr.exe
- Control-Alt-Delete combination is not working
- What to do if Chromebook won't turn on?
- What to do if Desktop icons keep moving after OS restart?
- You must enable system protection on this drive
- What to do if the touchpad scroll is not working?
- PS4 database is corrupted? Fix it now!
- Find and Change iTunes Backup Location
- How to Fix a Hard Drive Partition Table



