sodcalculator

10 Tech How-To

Fix Corrupt Configuration Registry Database on Windows 10

Guide 10-21468 · Updated · Step by step

This guide walks you through repairing the “configuration registry database is corrupt” error on Windows 10. This error usually appears during startup, preventing Windows from loading normally. The fixes below range from simple startup repairs to using the built-in recovery environment, and they work for most users without needing to reinstall Windows.

What You’ll Need

  • A Windows 10 installation media (USB or DVD) or access to the Advanced Startup Options screen
  • A second working computer (only if you need to create installation media)
  • An external backup drive (recommended, in case you need to reset Windows)

Step-by-Step

Method 1: Run Startup Repair

  1. Insert your Windows 10 installation media and boot from it. If you don’t have media, restart your PC and press the power button three times to force shutdown, which triggers Automatic Repair on the next boot.
  2. When the blue Windows Setup screen appears, select your language and click Next.
  3. Click Repair your computer in the bottom-left corner.
  4. Choose Troubleshoot > Advanced options > Startup Repair.
  5. Select your Windows 10 installation (usually the only one listed) and wait for the repair to complete. Restart your PC and check if the error is gone.

Method 2: Use System Restore

  1. Boot into Advanced Startup Options using the same steps as above (or via Shift + Restart if you can reach the login screen).
  2. Go to Troubleshoot > Advanced options > System Restore.
  3. Choose your Windows 10 installation and click Next.
  4. Select a restore point created before the error started (if any are available) and click Next.
  5. Confirm your choice and click Finish. The restore process may take 10-30 minutes, and your PC will restart automatically.

Method 3: Run Check Disk (chkdsk)

  1. Boot into Advanced Startup Options as described in Method 1.
  2. Select Troubleshoot > Advanced options > Command Prompt.
  3. In the Command Prompt window, type chkdsk C: /f /r and press Enter. Replace C: with your system drive letter if it differs (you can check by typing diskpart, then list volume).
  4. If prompted to dismount the volume, type Y and press Enter.
  5. Wait for the scan to finish. This can take 30 minutes to several hours depending on drive size and damage. When it completes, type exit and restart your PC.

Method 4: Rebuild the BCD (Boot Configuration Data)

  1. Open Command Prompt from Advanced Startup Options as in Method 3.
  2. Type the following commands one by one, pressing Enter after each:
    bootrec /fixmbr
    bootrec /fixboot
    bootrec /rebuildbcd
  3. If you see a message asking to add an installation to the boot list, type Y and press Enter.
  4. Type exit and restart your PC.

Method 5: Repair the Registry Hive Manually

  1. Boot from installation media and open Command Prompt from Advanced Options.
  2. Type regedit and press Enter. The Registry Editor opens.
  3. Click on HKEY_LOCAL_MACHINE in the left pane.
  4. Go to File > Load Hive.
  5. Navigate to C:\Windows\System32\config and select the SYSTEM file (you may need to change the file filter to “All Files”). Click Open.
  6. When prompted for a key name, type Recovery and click OK.
  7. Navigate to HKEY_LOCAL_MACHINE\Recovery\Select in the left pane.
  8. Look at the Current value. Note the number (usually 1).
  9. Double-click Current and change it to 0 (or the number that points to a known-good control set, often the one with the highest number in the ControlSet00x folders).
  10. Click OK, then select HKEY_LOCAL_MACHINE\Recovery and go to File > Unload Hive.
  11. Close Registry Editor, type exit in Command Prompt, and restart your PC.

Method 6: Reset This PC (Last Resort)

  1. Boot into Advanced Startup Options.
  2. Select Troubleshoot > Reset this PC.
  3. Choose Keep my files if you want to preserve personal documents (installed apps will be removed). Or choose Remove everything for a full reset.
  4. Follow the on-screen prompts. This will reinstall Windows 10 while keeping your personal files if you chose that option.

Common Mistakes

  • Skipping the backup: Before attempting registry repairs or resets, always back up important files if you can. Some methods can fail midway and leave the system in a worse state.
  • Wrong drive letter: In Command Prompt, the system drive may not be C:. Using the wrong letter in chkdsk or file paths will cause errors. Verify with diskpart first.
  • Interrupting chkdsk or Startup Repair: These processes can take a long time. Interrupting them can corrupt the drive further. Let them run to completion.
  • Editing the wrong registry hive: When loading the SYSTEM hive, make sure you select the correct file from the config folder. Loading the wrong file (like SOFTWARE or SAM) won’t help and could cause additional issues.
  • Not removing installation media: After repairing, if the PC keeps booting to the USB/DVD, you may need to change the boot order in BIOS or simply remove the media.

Tips

  • Try the methods in order: Startup Repair is the least invasive, then System Restore, then chkdsk, then BCD rebuild, then manual registry repair. Most users find success with the first two.
  • If you can access the login screen, create a restore point immediately after fixing the issue to protect against future problems.
  • Keep your Windows installation media in a safe place. It’s the most reliable way to access recovery tools.
  • If the error appears after a recent update or driver installation, System Restore to a point before that change is often the quickest fix.
  • Consider running sfc /scannow from Command Prompt after booting back into Windows to check for corrupted system files.

Troubleshooting

  • Startup Repair says it couldn’t fix your PC: This is common. Move on to System Restore or chkdsk. You can also try running Startup Repair twice in a row.
  • No restore points available: System Restore may be disabled or points may have been deleted. Skip to chkdsk or BCD rebuild.
  • chkdsk reports errors it can’t fix: This usually indicates failing hardware. Back up your data immediately and consider replacing the drive.
  • bootrec /rebuildbcd finds no installations: This means the Windows installation is severely damaged. Try the manual registry repair, or go straight to Reset This PC.
  • Registry Editor won’t load the hive: Make sure you’re browsing to the correct path and that the SYSTEM file isn’t locked. If it is, try using the System32\config\RegBack folder if it contains a SYSTEM file.
  • Reset This PC fails: If reset fails, you may need to use installation media to perform a clean install. Choose Custom install and delete all partitions on the system drive, then install Windows fresh. This erases everything, so only do this if you have backups.

Frequently Asked Questions

Will I lose my files with these fixes?

Methods 1-5 preserve all your files. Method 6 (Reset This PC) can keep personal files if you choose the “Keep my files” option, but installed programs will be removed. A clean install (last resort) erases everything.

How long does each fix take?

Startup Repair usually takes 5-15 minutes. System Restore takes 10-30 minutes. Chkdsk can take 30 minutes to several hours. Registry repair takes about 10 minutes. Reset This PC takes 30-60 minutes depending on your hardware.

What causes the configuration registry database to become corrupt?

Common causes include sudden power loss during shutdown, failing hard drive sectors, malware, improper shutdowns, or Windows updates being interrupted. The registry hive files (SYSTEM, SOFTWARE, etc.) become damaged and Windows can’t read them at boot.

Can I fix this without installation media?

Yes. If you can trigger Automatic Repair by interrupting boot three times (power off during the Windows logo), you can access the same Advanced Startup Options without media. However, having installation media is more reliable.

Is this error a sign my hard drive is dying?

Not necessarily. It can happen on healthy drives due to software issues. However, if chkdsk finds many bad sectors, or if the error recurs after fixing, your drive may be failing. Back up important data and run a drive health check.

What if none of these methods work?

If all methods fail, the Windows installation is likely too damaged to repair. Your best option is a clean installation of Windows 10 using installation media. This wipes the system drive, so ensure you’ve backed up everything important beforehand.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →