How to Restore the Windows Registry

Undo changes if you have a backup

If you've backed up the registry in Windows—either a specific key, maybe an entire hive, or even the whole registry itself—you'll be happy to know that restoring that backup is very easy.

Maybe you're seeing problems after a registry value or a registry key change you've made, or the issue you were trying to correct wasn't fixed by your recent Windows Registry edit.

Either way, you were proactive and backed up the registry just in case something happened. Now you're being rewarded for thinking ahead!

Another reason for needing to restore the registry is if you've downloaded a registry hack that you now need to import into Windows Registry on your computer for it to take effect. This might not seem the same as restoring a backup you made yourself, but the process is identical since they both involve importing the registry file.

Follow the easy steps outlined below to restore previously backed up registry data to the Windows Registry:

The steps below apply to all modern versions of Windows, including Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Time Required: Restoring previously backed up registry data in Windows usually only takes a few minutes.

How to Restore the Registry in Windows

  1. Locate the backup file that you made before making whatever changes to the Windows Registry that you now want to reverse.

    Having trouble locating the backup file? Assuming you actually did export some data from the registry, look for a file ending in the REG file extension. Check your Desktop or Documents, and in the root folder of your C: drive. It might also help to know that a REG file icon looks like a broken Rubik's cube in front of a piece of paper. If you still can't find it, try searching for *.reg files with Everything.

  2. Double-click or double-tap the REG file to open it.

    Depending on how you have Windows configured, you could see a User Account Control dialog box appear next. You'll need to confirm that you want to open Registry Editor, which you never actually see because it only runs in the background as part of the registry restore process.

  3. Choose Yes on the message prompt. The text differs between operating systems but will be one of these two:

    • Adding information can unintentionally change or delete values and cause components to stop working correctly. If you do not trust the source of this information in [REG file], do not add it to the registry. Are you sure you want to continue?
    • Are you sure you want to add the information in [REG file] to the registry?
    Registry Editor are you sure you want to continue prompt

    This isn't a message to be taken lightly. If you're importing a REG file that you didn't create yourself, or one you downloaded from a source you can't trust, please know that depending on what the REG file will change, you could cause considerable damage to Windows. If you're not sure whether that REG file is the right one, right-click it or tap-and-hold it to find the edit option, and then read through the text to make sure it looks right.

  4. Assuming the registry key(s) import was successful, you should receive a message like one of these that you can select OK on:

    • The keys and values contained in [REG file] have been successfully added to the registry.
    • Information in [REG file] has been successfully entered into the registry.

    At this point, the registry keys contained in the REG file have now been restored or added to the Windows Registry. If you know where the registry keys were located, you can open Registry Editor and verify that the changes were made as you expected.

    The backed up REG file will remain on your computer until you delete it. Just because the file still exists after you've imported it doesn't necessarily mean that the restore didn't work. You're welcome to delete this file if you don't need it anymore.

  5. Restart your computer. Depending on the changes that were made restoring the registry keys, you may need to restart to see them take effect in Windows, or whatever program(s) the keys and values that were restored pertains to.

Alternative Registry Restore Method

Instead of Steps 1 & 2 above, you could instead open Registry Editor first and then locate the REG file you want to use to restore the registry from within the program.

This method might be easier if you already have Registry Editor open for another reason.

  1. Open Registry Editor. Choose Yes to any User Account Control warnings.

  2. Go to File > Import.

    When importing a REG file, Registry Editor reads the contents of the file to know what it needs to do. Therefore, it doesn't matter if your mouse is currently selecting a different key than what the REG file is dealing with, or if you're inside a registry key doing something else.

  3. Locate the REG file you want to restore to the registry and then choose Open.

    Screenshot showing how to open a REG file from within Registry Editor in Windows 10
  4. Continue with Step 4 in the instructions above.

Was this page helpful?