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
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:
To perform this, follow these steps:
- Press the Windows logo key + R on your keyboard > type regedit in the Run box and press Enter to open the Registry Editor
- Go to
Computer\HKEY_LOCAL_MACHINE\Software, right-click the Software folder > expand New > click Key
- Right-click the newly created folder > expand New > click Key
- Make the desired settings for your key in this location and close the Registry Editor
- 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.