How to prevent Registry keys from disappearing after reboot [QUICK FIX]

Madalina Dinita
by Madalina Dinita
Madalina has been a Windows fan ever since she got her hands on her first Windows XP computer. She is interested in all things technology, especially emerging technologies -- AI and DNA computing in... Read more
Affiliate Disclosure
stop registry key from disappearing
To fix various PC problems, we recommend DriverFix:
This software will keep your drivers up and running, thus keeping you safe from common computer errors and hardware failure. Check all your drivers now in 3 easy steps:

  1. Download DriverFix (verified download file).
  2. Click Start Scan to find all problematic drivers.
  3. Click Update Drivers to get new versions and avoid system malfunctionings.
  • DriverFix has been downloaded by 0 readers this month.

Adding custom Registry keys is useful when trying to troubleshoot system issues or modify system settings. Some Windows 10 users reported their recently created keys disappeared after restarting the computer.

Usually, there is a misunderstanding on the user’s side of how to properly add keys.

If the key is not placed in a proper location, Windows will delete it after rebooting.

In order to have a better understanding on how to create a registry key properly, check our guide.

Steps to keep Registry keys after reboot

When adding a custom key to the Windows Registry, some users mistakenly place it in a location similar to Computer\HKEY_LOCAL_MACHINE.

Upon rebooting your computer, the system assembles the  HKLM (HKEY_LOCAL_MACHINE) hive, so the pre-reboot existing hive is not available anymore. Therefore, the custom added key disappears.

A hive is known as a group of keys, subkeys, and values located in the Windows Registry and contains a set of supporting files providing backup for the system data.

In order to have the system keep and recognize the key, you will need to create it in an existing subfolder of the HKLM.

Rather than adding your custom key to a location like Computer\HKEY_LOCAL_MACHINE, place it in a location containing the HKLM Software folder.

For example, add the key to a location similar to:

HKEY_LOCAL_MACHINE\Software\CustomKeyFolder\CustomKey

To perform this, follow these steps:

  1. Press the Windows logo key + R on your keyboard > type regedit in the Run box and press Enter to open the Registry Editor
  2. Go to Computer\HKEY_LOCAL_MACHINE\Software, right-click the Software folder > expand New > click Key
  3. Right-click the newly created folder > expand New > click Key
  4. Make the desired settings for your key in this location and close the Registry Editor
  5. Restart your computer and check to see if the key was saved.

We hope that our tutorial helped you to fix the issue. If you liked this article, leave a comment in the comment section below.

READ ALSO:

This article covers:Topics: