High Operating Systems ✓ Solution Verified by Community (0+ upvotes)

How to fix error 0xc0000218 in Windows 11

Bug Check 0xC0000218: STATUS_CANNOT_LOAD_REGISTRY_FILE — Cannot load registry hive file — corrupt or missing.

65% success rate
👥 0+ users verified
📅 Updated: 2026-08-12
⏱️ 90 min read
Fix based on community reports and expert analysis. Last verified: 2026-08-12 · How we verify fixes
Error Code0xc0000218
Affected SystemWindows 11 (Microsoft)
DifficultyHigh
Estimated Time90 min
Requires Admin Rights⚠️ Yes
Requires Reboot🔄 Yes

Solution Steps

  1. 1 First, try to boot into Safe Mode: Restart your PC and press F8 (or Shift + F8) repeatedly before the Windows logo appears. If Safe Mode loads, you can try to restore the registry from a backup. Press Windows key + R, type 'rstrui.exe', and press Enter. Follow the prompts to restore your system to a previous point. This can fix registry corruption.
  2. 2 If Safe Mode doesn't work, use Windows Recovery Environment (WinRE). Boot from your Windows installation media, select your language, and click 'Next'. Then click 'Repair your computer'. Choose 'Troubleshoot' > 'Advanced options' > 'Startup Repair'. This automatically fixes common startup issues, including registry problems.
  3. 3 If Startup Repair fails, open Command Prompt from WinRE: Go to 'Troubleshoot' > 'Advanced options' > 'Command Prompt'. Then run the commands 'sfc /scannow' and 'DISM /Online /Cleanup-Image /RestoreHealth' to repair system files. These commands can fix corrupted registry hives.
  4. 4 If the above doesn't work, you may need to manually replace the corrupted registry hive. In Command Prompt, type 'cd C:\Windows\System32\config' and press Enter. Then type 'ren DEFAULT DEFAULT.old' and press Enter. Repeat for 'SAM', 'SECURITY', 'SOFTWARE', and 'SYSTEM'. Then type 'copy C:\Windows\System32\config\RegBack\* C:\Windows\System32\config' and press Enter. This restores the registry from a backup. Note: This may not work if the RegBack folder is empty or outdated.
  5. 5 If all else fails, you may need to perform a system reset or reinstall Windows. Use the 'Reset this PC' option from WinRE: 'Troubleshoot' > 'Reset this PC'. Choose 'Keep my files' if you want to preserve personal data, but note that installed apps will be removed.

🔍 Didn't work? Enter your GPU and CPU for hardware-specific advice:

🔧 Still having issues?

Describe your exact problem to Error Buddy and get a personalized fix in seconds.

🛠️ Try Error Buddy — It's Free