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

November 2022 · 2 minute read
stop registry key from disappearing

XINSTALL BY CLICKING THE DOWNLOAD FILE

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:
  • Download DriverFix (verified download file).
  • Click Start Scan to find all problematic drivers.
  • Click Update Drivers to get new versions and avoid system malfunctionings.
  • 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:

  • 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.

    READ ALSO:

    ncG1vNJzZmivmaOxsMPSq5ypp6Kpe6S7zGipnp%2BZqMGzxYyknLKrXZm2tK3PqZyaql2nsqO7zq1m