How to Back up and Restore Windows Registry (2024)

The Windows registry is a database that contains important, machine-specific settings and information regarding almost everything in your computer — preferences, applications, users, attached devices and so on. The registry contains two basic elements: keys and values. The Windows operating system is constantly referring to the registry; for example, to open a program, install new software or change your hardware, Windows must check the values of certain keys.

A registry file can become corrupted due to malware or issues, which can lead to poor performance or even the operating system crashing. To ensure you can recover from corruption, you should back up your reg files regularly. So let’s find out how to make an entire registry backup and restore the registry in Windows.

Download free guide:

Making a Windows Registry Backup

Back up the Windows Registry Using Regedit

Back up your registry regularly, and also before you attempt to change, create or remove registry settings or hives, or install new system drivers, so you can revert to a known good version if something goes wrong. Follow these steps to create a backup:

  1. Press the Windows button and the R button simultaneously to open the Run window.
  2. Type “regedit” to open the registry editor and press Enter.
  3. Click File > Export.
  4. In the dialogue box, enter a name for the backup file (for example “rgbkp2018”), select the location where you want to export registry file and click Save to create and save the backup.
How to Back up and Restore Windows Registry (1)

Backing up the Windows Registry Using the Command Prompt

You can export registry records by typing reg export and a particular registry root key at the command prompt. To export multiple keys, you can use a script like the following:

reg export HKCR C:RegBackHKCR.Reg /yreg export HKCU C:RegBackHKCU.Reg /yreg export HKLM C:RegBackHKLM.Reg /yreg export HKU C:RegBackHKU.Reg /yreg export HKCC C:RegBackHKCC.Reg /y

You can also back up your registry automatically with third-party registry cleaning software like CCleaner Registry Cleaner; you can find more about top free tools in the article “How to Perform Windows Registry Repair.”

Restoring the Windows Registry

You can restore your registry in several different ways. Here are the most common methods:

  • From Safe Mode
  • From the command prompt
  • Using System Restore
  • Using Automatic Repair
  • Using System File Checker
  • By resetting the PC
  • Using the DISM command
  • By reinstalling Windows from scratch

How to Restore a Registry Backup from Safe Mode

This is the most basic method. First, boot Windows in Safe Mode by pressing the F8 button while turning your computer on. When you boot in Safe Mode, Windows loads a minimal environment that helps ensure a stable system and protect vital files and drivers from corruption. Once you’ve booted into Safe Mode, perform the following commands:

  1. Press the Windows button and the R button simultaneously to open the Run window.
  2. Type “regedit” and press Enter.
  3. Click File > Import to import a registry file.
  4. In the Import Registry dialogue box, browse to the location where you saved the file of your backup and click Open.
How to Back up and Restore Windows Registry (2)

Alternatively, a slightly quicker method is to browse to the location with the backup, right-click the file and select Merge. The file will be automatically imported to your registry.

How to Back up and Restore Windows Registry (3)

How to Restore the Registry from the Command Prompt

In some situations, the Windows system will not boot into Safe Mode, so you need to manually restore your registry from the command prompt. To do this, you’ll need your original Windows OS disk or an ISO image on the bootable flash drive with your Windows operating system.

Tap the F8 button before Windows starts and choose Repair My Computer. If F8 doesn’t work, boot from your CD or flash drive by selecting your CD-ROM or flash drive as a primary bootable device in the BIOS and enter the repair Windows mode from there. After booting the Windows OS setup, go to System Recovery and select the command prompt.

We’ll be assuming your Windows directory is located on the C drive. Enter these commands to change your working directory to the directory with your backup:

Cd /d C:windowsSystem32configxcopy *.* C:RegBackcd RegBackdir

Then replace the current registry settings with the ones from the backup using these commands:

copy /y software ..copy /y system ..copy /y sam ..

Note that the two periods are part of the command.

After this process completes, restart your computer.

How to Restore the Windows Registry with System Restore

You can also restore your computer’s registry using a Windows system restore point. If your computer has System Restore enabled, restore points will be created automatically when major changes are made to the system, such as the installation of new drivers. You can also create restore points manually.

  1. To open the System Restore window, click the Start menu and enter “restore” in the search box.
  2. Select System Restore from the list of results.
  3. Select a restore point. Windows will select the most recent restore point. If the registry corruption has been around for a while, click Show more restore points to see earlier ones. Each restore point will have a timestamp as well as a brief description of why the restore point was created.
  4. Click Scan for affected programs to see all of the programs and drivers that will be deleted from the computer and all programs that will likely not work correctly if you proceed with the restore. A system restore will not affect any of your personal files.
  5. Click Next and then Finish to start the restore process. This may take a few minutes. Your computer will reboot after the restore is complete.

How to Restore the Registry with Automatic Repair

Newer versions of Microsoft Windows, starting from Windows XP, include an automatic repair feature. When you run Automatic Repair, it will attempt to fix corrupt registry keys and repair invalid keys. In Windows 10, take these steps (note that in Windows XP, Windows Vista and Windows 7, the steps might be different):

  1. Open the Settings
  2. Go to the Update & Security section and click
  3. On the Advanced Startup panel, click Restart now.
  4. After the computer reboots, on the Choose an option screen, click Troubleshoot.
  5. On the Advanced Options screen, click Automated Repair.
  6. Choose an account and log in when prompted to do so.
  7. Automatic repair will start. Your computer might reboot during this process.

How to Restore the Registry with System File Checker

Another way to fix a corrupted registry is to run the System File Checker:

  1. Run cmd.exe with administrator rights.
  2. In the command window, type “sfc /scannow and press Enter.
  3. Wait until the scan is complete and then reboot if needed.

How to Restore the Registry by Resetting the PC

Windows 10 allows you to reset your computer and leave all your files untouched. This option completely refreshes your system files and may help with restoring the registry after a system crash. Here are the steps to follow:

  1. Go to Settings and click Update and Security.
  2. Select
  3. In the Reset This PC section, click Get Started and then click Keep My Files.
  4. Click Next twice and then click Finish.

Perform a Registry Restore with the DISM Command

  1. Run cmd.exe with administrator rights.
  2. Run the following command: DISM /Online /Cleanup-Image /ScanHealth
  3. Wait until the scan process completes.

Reinstalling Windows from Scratch

If these methods didn’t fix your registry problems, then you probably will have to reinstall Windows from scratch, which will reset the registry to factory settings.

Conclusion

You should back up your registry on a regular schedule and before any major change so you can restore it if the installation of a program, driver or device causes issues. It is also important to track changes to your registry entries to quickly spot registry corruption. In particular, malware often changes registry startup keys so it will start automatically after each reboot. You can learn more about tracking Windows Server registry changes in this guide about detecting modifications to startup items in the Windows registry.

How to Back up and Restore Windows Registry (4)

Jeff Melnick

Jeff is a former Director of Global Solutions Engineering at Netwrix. He is a long-time Netwrix blogger, speaker, and presenter. In the Netwrix blog, Jeff shares lifehacks, tips and tricks that can dramatically improve your system administration experience.

How to Back up and Restore Windows Registry (2024)

FAQs

How to Back up and Restore Windows Registry? ›

Open the System Restore utility by typing “System Restore” in the Windows search bar and selecting the corresponding result. Click on “Create a restore point” and then click on the “Create” button. Follow the prompts to create a restore point, which includes backing up the Registry along with other system files.

Is there a way to reset Windows Registry? ›

Solution 1. Fully Reset the Registry by Resetting your Windows PC
  1. Step 1: Open Windows Settings by pressing Win + I or from the start menu.
  2. Step 2: Go to Update and Security > Recovery.
  3. Step 3: Opt for "get started" from the Reset this PC option.
May 13, 2024

Does Windows 10 automatically backup the registry? ›

Summary. Starting in Windows 10, version 1803, Windows no longer automatically backs up the system registry to the RegBack folder. If you browse to the \Windows\System32\config\RegBack folder in Windows Explorer, you will still see each registry hive, but each file is 0 kb in size.

Does restore point recover registry? ›

System Restore takes a "snapshot" of the some system files and the Windows registry and saves them as Restore Points. When an install failure or data corruption occurs, System Restore can return a system to working condition without you having to reinstall the operating system.

What tool can you use to back up a portion of the registry? ›

The only way you can reliably backup the registry is with Regedit. A specific format of data in a registry value is called a data type.

How do I restore my old Windows registry? ›

Restoring the Windows registry backup
  1. Open the Windows Registry Editor by doing either of the following: ...
  2. Click File > Import.
  3. Select the directory where the registry backup will be imported (e.g. desktop) and select the registry backup.
  4. Click Open.
  5. Restart your computer to begin using the restored registry.
May 14, 2024

How to backup the registry? ›

In Registry Editor, locate and click the registry key or subkey that you want to back up. Select File > Export. In the Export Registry File dialog box, select the location to which you want to save the backup copy, and then type a name for the backup file in the File name field. Select Save.

What happens if you delete Windows registry? ›

Registry keys are important to the functionality of your computer and its installed programs. Accidental removal of an essential registry entry may damage the system of your PC. Having a backup allows you to recover accidentally deleted entries. Click File on the menu bar, and then select Export.

Is the registry stored on the hard drive? ›

Even though the registry presents itself as an integrated hierarchical database, branches of the registry are actually stored in a number of disk files called hives. (The word hive constitutes an in-joke.) Some hives are volatile and are not stored on disk at all.

Does Disk Cleanup clean registry? ›

Keep in mind that Disk Cleanup does not actually clean your registry directly, but it can clean up and remove files that may still have data in the registry. When Disk Cleanup is performed, registry data entries are often removed and deleted as well.

What does restoring the registry mean? ›

System Restore is a feature in Microsoft Windows that allows the user to revert their computer's state (including system files, installed applications, Windows Registry, and system settings) to that of a previous point in time, which can be used to recover from system malfunctions or other problems.

How to restore Windows registry from command prompt? ›

Perform a Registry Restore with the DISM Command
  1. Run cmd.exe with administrator rights.
  2. Run the following command: DISM /Online /Cleanup-Image /ScanHealth.
  3. Wait until the scan process completes.
Oct 30, 2018

Is A restore point the same as a backup? ›

Saved passwords may not be available after a system restore. This also means that a corporate domain-joined computer may lose its association to the domain after a restore and will need to be rejoined to the domain. A system restore point is not a full backup. It does not affect user data or files.

Where are registry backups usually stored? ›

After enabling registry backup, Windows 10 will create a backup of your registry every 10 days by default. These backup files can be found in the C:\Windows\System32\config\RegBack folder. In my knowledge, the automatic backup happens every time the computer starts or restarts.

Why is backing up the registry important? ›

The importance of a backup

The Windows Registry is essential to the operating system, and any corruption or modification to its entries can lead to system problems, performance issues, and even system failure.

How do I copy the entire registry? ›

  1. Open the Registry Editor.
  2. Select the appropriate registry key, or My Computer (to export the entire registry)
  3. Select File, Export from the menu bar or right-click on the appropriate registry key and select Export.
  4. Browse to the directory to save the file to and enter a File name.
  5. Click OK to create the export file.

How do I clear my Windows registry? ›

How to Clean Windows Registry via Disk Cleanup
  1. Press Start and type Disk Cleanup in search bar.
  2. Click on app.
  3. Once the app opens, a window will appear, select the Windows C: drive and then click OK.
  4. After the tool completes its scan, click on Clean up system files.

Is it safe to reset registry? ›

Accidental removal of an essential registry entry may damage the system of your PC. Having a backup allows you to recover accidentally deleted entries. Click File on the menu bar, and then select Export. Choose where you want to save the backup file, and then click Save.

How do I reset my Microsoft store registry? ›

Press the Windows Logo Key + R to open the Run dialog box, type wsreset.exe, and then select OK. A blank Command Prompt window will open, and after about ten seconds the window will close and Microsoft Store will open automatically.

How to revert registry changes? ›

Restoring the Windows Registry
  1. Open the System Restore utility as described earlier.
  2. Select “Restore system files and settings” and click “Next.”
  3. Choose the restore point that contains the Registry backup you want to restore and follow the prompts to complete the restoration process.
May 6, 2024

Top Articles
SBA Loan Credit Score Requirements | LendingTree
The 6 Master Steps To Do It
Public Opinion Obituaries Chambersburg Pa
417-990-0201
THE 10 BEST Women's Retreats in Germany for September 2024
Find All Subdomains
Fallout 4 Pipboy Upgrades
Pollen Count Los Altos
Olivia Ponton On Pride, Her Collection With AE & Accidentally Coming Out On TikTok
Revitalising marine ecosystems: D-Shape’s innovative 3D-printed reef restoration solution - StartmeupHK
Slope Unblocked Minecraft Game
‘Accused: Guilty Or Innocent?’: A&E Delivering Up-Close Look At Lives Of Those Accused Of Brutal Crimes
Drago Funeral Home & Cremation Services Obituaries
Top tips for getting around Buenos Aires
Craiglist Galveston
Slope Tyrones Unblocked Games
Directions To Advance Auto
Where to Find Scavs in Customs in Escape from Tarkov
Azpeople View Paycheck/W2
Jobs Hiring Near Me Part Time For 15 Year Olds
Crossword Help - Find Missing Letters & Solve Clues
John Deere 44 Snowblower Parts Manual
The Goonies Showtimes Near Marcus Rosemount Cinema
Kristy Ann Spillane
Mawal Gameroom Download
Gus Floribama Shore Drugs
Red Sox Starting Pitcher Tonight
How to Use Craigslist (with Pictures) - wikiHow
Nacogdoches, Texas: Step Back in Time in Texas' Oldest Town
Jambus - Definition, Beispiele, Merkmale, Wirkung
Mississippi State baseball vs Virginia score, highlights: Bulldogs crumble in the ninth, season ends in NCAA regional
Jennifer Reimold Ex Husband Scott Porter
Grapes And Hops Festival Jamestown Ny
Cookie Clicker The Advanced Method
Noaa Duluth Mn
Below Five Store Near Me
Kent And Pelczar Obituaries
ESA Science & Technology - The remarkable Red Rectangle: A stairway to heaven? [heic0408]
Windshield Repair & Auto Glass Replacement in Texas| Safelite
VDJdb in 2019: database extension, new analysis infrastructure and a T-cell receptor motif compendium
Doublelist Paducah Ky
RubberDucks Front Office
25 Hotels TRULY CLOSEST to Woollett Aquatics Center, Irvine, CA
Plumfund Reviews
Walmart Front Door Wreaths
De boeken van Val McDermid op volgorde
What Time Do Papa John's Pizza Close
Grace Charis Shagmag
Competitive Comparison
Denys Davydov - Wikitia
Who We Are at Curt Landry Ministries
Latest Posts
Article information

Author: Dean Jakubowski Ret

Last Updated:

Views: 5665

Rating: 5 / 5 (70 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Dean Jakubowski Ret

Birthday: 1996-05-10

Address: Apt. 425 4346 Santiago Islands, Shariside, AK 38830-1874

Phone: +96313309894162

Job: Legacy Sales Designer

Hobby: Baseball, Wood carving, Candle making, Jigsaw puzzles, Lacemaking, Parkour, Drawing

Introduction: My name is Dean Jakubowski Ret, I am a enthusiastic, friendly, homely, handsome, zealous, brainy, elegant person who loves writing and wants to share my knowledge and understanding with you.