How to restore Registry from secret backup on Windows 10

Windows 10 secretly makes a Registry backup in a RegBack folder, and you can use it to restore your computer to a working condition manually – here's how.

Config folder with RegBack folder
Config folder with RegBack folder

On Windows 10, it is never a good idea to modify the Registry because the database contains low-level settings necessary for the system and certain apps to operate correctly, and the slightest mistake can prevent the device from starting.

If you recently made system setting changes or installed a buggy update that caused the computer to stop working, you can still recover Windows 10 using a hidden Registry backup. However, there is one caveat, since the operating system no longer creates these backups automatically, you have to re-enable it manually before using it.

In this guide, you will learn the steps to restore the previous version of the Registry manually from its automated backup on Windows 10.

Important: Remember that modifying system files can further damage the installation if not done correctly. It is assumed that you know what you’re doing and have previously created a full backup of your computer. Use these steps at your own risk.

Restore Registry manually on Windows 10

To restore the Registry on Windows 10 manually, use these steps:

  1. Start PC with Advanced startup options.

  2. Click on Troubleshoot.

  3. Click on Advanced options.

  4. Click on Command Prompt.

  5. When the device starts in Command Prompt, it will start on X:\Windows\System32. This means you’ll need to move to the drive letter where Windows is installed. Although the OS resides on the C:\ drive, this drive letter could change to something else when you boot your computer on recovery mode. However, in most cases, the drive letter is D:\. As a result, type the following command to enter into the correct drive where Windows 10 is installed and press Enter:

  6. Type the following command to confirm you are in the correct drive to restore the Registry, and press Enter:


    Command Prompt in Advanced startup

    You are in the correct drive letter if you see the Windows folder. If not, return to step 5 and try another drive letter.

  7. Type the following command to enter into the System32 folder and press Enter:

    cd d:\windows\system32

    Change D in the command with the correct drive letter for your scenario.

    Windows 10 Config folder

  8. Type the following command to create a folder for a temporary backup on the config folder, which also happens to store a copy of the Registry, and press Enter:

    mkdir configBak
  9. Type the following command to create a temporary backup of the files in the config folder, and press Enter:

    copy config configBak

    Making a backup copy of the Registry on Windows 10

  10. Type the following command to move inside the RegBack, which contains a backup of the Registry, and press Enter:

    cd config\RegBack
  11. Type the following command to confirm the content of the RegBack folder and press Enter:


    RegBack folder content

    Warning: After executing the dir command, the file size (SYSTEM, SOFTWARE, SAM, SECURITY, DEFAULT) should be similar to those in the screenshot. If any of the files shows 0, do NOT continue, as you won’t be able to repair your Windows 10 installation, and your device may stop booting.
  12. Type the following command to copy the files from the RegBack folder to the config folder, restore the Windows 10 Registry, and press Enter and the Y key on every question to confirm:

    copy * ..\*

    Restoring Registry from its backup

  13. Click the Close (X) button from the top-right.

Once you complete the steps, the computer will reboot, and Windows 10 should start correctly.

We are focusing this guide on Windows 10, but the concept should also work on Windows 8.1 and 7.

About the author

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 14 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and Email him at [email protected].