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

Madalina Dinita
by Madalina Dinita
Managing Editor
0 Comments
Download PDF
Affiliate Disclosure

stop registry key from disappearing

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.

Ad

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:

Ad
  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:

Ad
Was this page helpful?
Thanks for letting us know! You can also help us by leaving a review on MyWOT or Trustpillot.
Get the most from your tech with our daily tips
Tell us why!