REGISTRY_ERROR Blue Screen in Windows 11 and 10: Causes, Safe Checks and Repair

Flat navy illustration of a monitor with a solid blue screen showing a white sad face, above a tree of key-shaped nodes with one red branch snapped
Flat navy illustration of a monitor with a solid blue screen showing a white sad face, above a tree of key-shaped nodes with one red branch snapped

A REGISTRY_ERROR blue screen is the stop code Windows shows when it runs into what Microsoft describes as a severe registry error, and its number is 0x51. Microsoft's description points to a registry file that could not be read or written properly, which can come from the drive, the file system or the computer's hardware. This guide explains what the code means, where to find it, and a safe order of checks that never edits registry keys by hand.

Last reviewed: November 24, 2026. Steps were compared with Microsoft documentation where a page exists; none was run on a real PC. The top picture is a generated illustration.

Quick answer: what a REGISTRY_ERROR blue screen means and what to do first

The short version

  • REGISTRY_ERROR is bug check 0x51. Microsoft says it indicates a severe registry error, often a failed read of a registry file.
  • Write down the stop code and any parameter numbers before you change anything else.
  • Check the drive first: free space on C:, Windows Update and a restart, then chkdsk C: /scan and a drive health check.
  • Next run DISM and SFC, undo the last driver or update if the crashes began after it, and test memory.
  • Never edit registry keys by hand and never use a registry cleaner. Use System Restore or a repair install if the safe steps do not hold.

In this guide

What this stop code means

Windows stop codes, also called bug checks, are the short codes on the blue screen that appear when Windows has to stop to protect the system. Microsoft's Learn page for bug check 0x51 says the REGISTRY_ERROR bug check has the value 0x00000051 and that it indicates a severe registry error has occurred. The page is written for programmers. It says the error may mean the registry hit an I/O error while it tried to read one of its files, and that this can be caused by hardware problems or file system corruption.

Reading the blue screen

The sad face and the QR code are normal parts of the blue screen, and they do not tell you what failed. The stop code text is what matters. Write down the words after the sad face, which for this guide is REGISTRY_ERROR, and any numbers the screen shows on its parameter line. Microsoft's page lists parameters 1 and 2 as reserved, parameter 3 as the pointer to the hive if it is available, and parameter 4 as the return code of HvCheckHive if the hive is corrupt and that value is available. A full stack trace needs a kernel debugger, so most home users will only need the stop code name and the time of the crash.

What the registry is

The registry is Windows' central settings store. It holds settings for Windows itself, for installed programs and for hardware, and it is kept on disk in files called hives. Windows reads those files when it starts and writes changes back while it runs, so a damaged or unreadable hive can affect the whole system. For the plain-language version, read our guide to the registry explained, with hives, keys and values. For the full route on corrupted registry files, read our guide to repairing corrupted registry files in Windows; this guide stays on the blue screen angle. Each hive also has transaction log files beside it, which our guide to registry transaction logs explains.

Why a registry read problem can stop Windows

If Windows cannot read a hive, or cannot write its changes safely, it has no reliable way to carry on, so it stops with 0x51. Microsoft's wording covers hardware problems and file system corruption. In practice, the common reasons for those problems are a failing drive or bad sectors, file system errors, a shutdown, crash or update that was interrupted while registry files were being written, a disk so full that writes fail, memory faults that corrupt data, and a driver or filter driver (software that sits between Windows and hardware, such as security or disk tools) that misbehaves. These causes are our reading of how such a failure starts, not a list Microsoft publishes for this code. A related message is error 0x800703F1 for a corrupt configuration registry database.

  1. Windows loads a hive from disk when it starts or needs a setting.
  2. The read or write fails because the drive, the file system, memory or a driver returns an error.
  3. The registry reports a severe error and Windows raises the bug check.
  4. The blue screen shows 0x51, and the crash can repeat until the cause is fixed.

Find the stop code in Reliability Monitor and Event Viewer

After a restart, Windows often keeps a record of the crash, so you do not have to catch the screen in time. Search the Start menu for Reliability Monitor. It shows a timeline of events, and critical events are marked, so look for the date and time of the crash. Our guide on using Reliability Monitor to find Windows crashes covers the screens in more detail.

For the raw log, search for Event Viewer, open Windows Logs, then System, and look near the time of the crash. Entries commonly reported after an unexpected restart include Kernel-Power event 41 and BugCheck event 1001. Those two entries usually confirm that a crash happened, and the BugCheck entry may show the stop code text, but they do not name the cause on their own. Menu names and layouts can differ by Windows version, so match them to your screen. The steps for reading restart records are in our guide to random restarts and Event Viewer in Windows 11.

If the stop code is not 0x51

If the blue screen shows a different code, the REGISTRY_ERROR steps below will not match it. Start with understanding and fixing blue screen errors, then the code-specific guides, such as the memory management stop code or the WHEA uncorrectable error on Windows 11.

Likely causes and signs

The table below groups the likely causes by what you may notice. A row is a starting point, not a diagnosis. Several causes can happen together, and the checks in the steps section are written to rule them out in a safe order.

CardWhat it can look likeLikely areaNext safe step
Drive errorsSlow file access, disk errors in the System log, crashes that return after restartsThe drive or file system that holds Windows, usually C:Free space check, then chkdsk C: /scan and the drive health check
Interrupted writeA crash, power loss or forced shutdown during an update, followed by the first 0x51Registry files left half-writtenWindows Update and a restart, then DISM and SFC
Driver or updateCrashes that began soon after a driver or Windows updateA driver or filter driverUndo the last change from Safe Mode or Update history
Memory faultOther stop codes too, or crashes that appear at random under loadThe memory modulesRun the Windows memory test

Where to start: a short decision path

  • Can Windows start normally?
    • Yes: work through the steps in order, starting with the note of the stop code and free space on C:.
      • Did the crashes begin after a driver or update? Undo that change before anything else.
      • Do you see a drive warning, or do crashes come back at random times? Run the drive checks before the other repairs.
    • No: go to the startup repair step for Windows that will not start.
      • If Startup Repair fails, use a repair install that keeps your files. Reset only as a last resort.

Step-by-step fixes

Before you start

Never edit registry keys by hand to fix this stop code, and never use a registry cleaner. Both change the very files Windows is struggling to read, and a wrong change can make the next read fail. If you can, back up your personal files before you begin, using our guide to backing up Windows PC files.

Follow the steps in order. Each one is a reversible check or repair, and none of them requires changing registry keys.

Step 1: Write down the stop code

Photograph the blue screen with a phone if it stays on screen long enough, or write down the words after the sad face and any numbers on the parameter line. Note the time of the crash and what you were doing: starting up, shutting down, installing an update, or working normally.

You should see: a written note that includes REGISTRY_ERROR or 0x51, plus the time and the activity before the crash.

If this fails: if the screen restarted too fast to read, check Reliability Monitor and Event Viewer as described above. The BugCheck entry may show the stop code text.

Step 2: Unplug nonessential devices

Shut down the PC. Unplug USB drives, docks, printers, external displays and other devices you do not need to start Windows. Keep the keyboard, mouse, power and the display you use. Start the PC again and use it normally for a while.

You should see: Windows starts and runs with only the essentials connected, and the crash does not return during normal use.

If this fails: if the crash still happens with only the essentials connected, keep going. The cause may be inside the PC.

Step 3: Check free space on C:

Open Settings, then System, then Storage, and check the free space shown for the drive that holds Windows, usually C:. Our list of causes includes a disk so full that writes fail, so a nearly full drive is worth fixing now. Remove files you no longer need, such as old downloads or large files you have copies of. Do not delete anything inside the Windows folder by hand.

You should see: the storage page shows that C: has room to spare, and no warning that the drive is nearly full.

If this fails: if you cannot free space safely, move personal files to external storage first. Then return to the steps. Storage menu names can change between versions, so follow what your screen shows.

Step 4: Run Windows Update and restart

Open Settings, then Windows Update, select Check for updates, install what is offered, and restart when Windows asks. Use the restart Windows requests rather than holding the power button, because a forced power-off during writes is one of the causes listed above.

Windows 10 users

Windows 10 reached end of support on October 14, 2025, according to Microsoft's Extended Security Updates page. The consumer ESU program covers eligible Windows 10 devices through October 12, 2027, and enrollment is open until then. The steps in this guide still apply, but according to that page, a Windows 10 PC that is not enrolled in ESU will not receive those extended security updates.

You should see: the updates install, the restart completes, and Windows reports that it is up to date.

If this fails: if an update keeps failing, note the error code and do not force the install. The DISM steps later cover update-related repair, and the update uninstall steps can help if the failure began after a specific update.

Step 5: Run an online disk check with chkdsk

Search for Command Prompt, right-click it, select Run as administrator, and confirm the prompt if Windows asks. Then run the command below. Microsoft's chkdsk page describes the /scan option as use with NTFS only, and as running an online scan on the volume. The check reads the file system while Windows keeps running, so do not interrupt it.

chkdsk C: /scan

You should see: a report from chkdsk that either finds no errors or lists problems it can see. This command checks the file system but does not repair it, because Microsoft's page says chkdsk corrects logical disk errors only when /f is specified.

If this fails: if Command Prompt says the command is not recognised or access is denied, reopen it as administrator. If the report lists problems, do not run /f or /r yet. Go to the drive health check in the next step first.

Step 6: Check drive health and stop on a failing drive

Check the drive's health using the health tool your PC or drive maker provides, and the steps in our guide to checking hard drive and SSD health. Look for a status that says the drive is healthy and no failing-drive warning.

Failing drive warning

If the health check reports that the drive is failing, or the chkdsk report shows problems that come back, stop the repairs. Back up your files now. Do not run chkdsk /f or chkdsk /r on a failing drive as a fix. Microsoft notes that /r reads every sector and that it can take a considerable amount of time on large drives, and a failing drive may not survive that work.

You should see: a health status that reports the drive as healthy, with no failing-drive warning.

If this fails: if the drive reports a warning, back up your files and plan to replace the drive or ask a repair shop to assess it. Repairing the registry will not help a drive that is failing.

Step 7: Run DISM, then SFC

Open Command Prompt as administrator. Run DISM first, because Microsoft's System File Checker guide recommends it before SFC. DISM repairs the Windows image that SFC uses as its source. Wait for it to finish, then run SFC. Our full guide is at repairing Windows system files with SFC and DISM.

DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannow

You should see: DISM completes its restore operation, then SFC reports that it did not find integrity violations, or that it found corrupt files and repaired them. Microsoft's page says not to close the window until the verification is 100 percent complete.

If this fails: if DISM cannot find a source for its repair, see our guide to the DISM 0x800f081f source files error. If SFC reports that it found corrupt files but could not fix some of them, see what to do when SFC finds corrupt files it cannot fix.

Step 8: Undo the last driver or update

If the crashes began after a driver or Windows update, undo that change. Start with Safe Mode, described in our guide to booting into Safe Mode. In Settings, open Windows Update, then Update history, then the uninstall option for updates, and remove the most recent update if it matches the crash date. For a driver, open Device Manager, find the device, open its Properties, and use Roll Back Driver if it is shown. Menu names can differ by Windows version, so match them to your screen.

You should see: after the change, Windows starts normally and the crash does not return during regular use.

If this fails: do not download driver files from random websites, and do not replace system files by hand. Use the driver the device maker currently offers, or ask for help. Our guides on updating drivers in Windows 11 and uninstalling a Windows update show the wider steps.

Step 9: Test memory

Search the Start menu for Windows Memory Diagnostic, open it, and choose the option to restart and check for problems. Let the test finish without interrupting it. The name and steps are the built-in Windows tool as we understand it, and the wording can differ by version. Our guide on testing RAM with Windows memory diagnostic explains the results.

You should see: a result that reports no memory problems after the test completes.

If this fails: if the test reports errors, treat the memory as faulty and get it checked or replaced. If the test cannot run, check the test guide before you go further. Memory faults can cause this stop code, so do not skip this step.

Step 10: Use System Restore

Search for create a restore point, open System Properties, select System Restore, and choose a restore point dated before the first crash. Follow the prompts. A restore point is a snapshot of system settings. We did not confirm Microsoft's exact wording on what a restore point covers, so treat the restore as a rollback, not a guaranteed fix. Apps and updates installed after the restore point may be removed, so back up first. Our guide to using System Restore in Windows covers the wizard.

You should see: the restore finishes, Windows restarts, and the crash does not return after the restore.

If this fails: if no restore point exists, or the restore fails, go to the startup repair step below and then the repair install step.

Step 11: If Windows will not start, use Startup Repair

If Windows will not start, use the Windows Recovery Environment. Turn the PC off during startup, repeat that a few times until the recovery screen appears, and choose Advanced options. Then choose Startup Repair and follow the prompts. Menu names can differ, so match them to your screen. Our guide to using Startup Repair when Windows will not boot covers the full sequence.

You should see: Startup Repair runs and reports whether it could repair the startup problem.

If this fails: if Startup Repair cannot fix the problem, move to the repair install step. Do not repeat the same repair again and again.

Step 12: Repair install first, Reset as a last resort

If Windows still fails after the steps above, use a repair install that keeps your files. Our guide to repairing Windows 11 without losing files explains it. Reset is the last resort, and it should be chosen only when a repair install does not work. If you use Reset, choose the option that keeps your files where Windows offers it. Our guide to resetting Windows 11 and keeping files covers the choices.

You should see: Windows starts, and the REGISTRY_ERROR stop code does not come back during normal use.

If this fails: if the stop code returns after a repair install or a reset, the cause may be hardware. Stop and get help, using the section below.

How to tell it is fixed

Treat the problem as resolved only when several checks agree. Keep your notes from step 1 so you can compare.

  1. The stop code has not returned after several normal restarts and ordinary use.
  2. Event Viewer shows no new BugCheck entries after the date of your fix.
  3. The chkdsk /scan report shows no errors, and the drive health check reports the drive as healthy.
  4. DISM and SFC report no unrepaired problems, and memory testing reported no errors.

If one check still fails, return to the matching step rather than trying a new change on top of the last one.

When to stop and get help

Stop and get help if the drive health check reports a failing drive, if the memory test reports errors, if the stop code returns after a repair install or reset, if Windows will not start after Startup Repair, or if you see signs of data loss. Back up your files before anyone works on the drive or memory. A repair shop can test the hardware, which a software guide cannot do.

If you are not sure which step fits your PC, use the repair assistant to match your symptoms to the right next step, and keep your stop code note ready.

Frequently asked questions

About the stop code

Is a REGISTRY_ERROR blue screen the same as a corrupted registry?

Not always. Microsoft describes the code as a severe registry error, and it may come from an I/O error while the registry reads one of its files. Corruption is one possible cause, but a failing drive or faulty hardware can cause the same stop code. For the corruption route, read the corrupted registry repair guide, and keep the drive checks first.

Does the sad face or the QR code tell me the cause?

No. Both are normal parts of the blue screen. The stop code text, here REGISTRY_ERROR and 0x51, is the part that matters for finding the cause.

Can I find the stop code after the PC restarts?

Often yes. Reliability Monitor and Event Viewer can keep a record of the crash, and the BugCheck entry may show the stop code. Layouts vary by Windows version, so compare them with your screen.

About the repairs

Should I use a registry cleaner?

No. This guide does not recommend registry cleaners or manual registry edits for this stop code. A bad change can make the next read fail, and the safer checks are the drive, the system files and the recent updates or drivers.

Should I run chkdsk /f or chkdsk /r?

Only with care. Microsoft says /f fixes errors and needs the disk locked, and /r also checks for bad sectors and takes longer. Do not use either on a drive that the health check reports as failing. Back up your files first.

What is the difference between DISM and SFC?

DISM repairs the Windows image that SFC draws on for its repairs, so Microsoft recommends running DISM before SFC. Run them in that order from an administrator Command Prompt, and wait for each to finish.

Will System Restore remove my files?

Apps and updates installed after the restore point may be removed. We did not confirm Microsoft's exact wording on personal files in this review, so back up first and read the restore prompt carefully.

Is Windows 10 still safe to use for this repair?

Windows 10 reached end of support on October 14, 2025. Microsoft's consumer Extended Security Updates program covers eligible devices through October 12, 2027, and the repair steps here still apply. The security updates are the main reason to enroll or to plan an upgrade.

More help

PC repair guides

How this guide was checked

Steps were compared with Microsoft documentation where a page exists; none was run on a real PC. The Microsoft Learn page for bug check 0x51 returned an error when we tried to open it, so its wording here comes from the search excerpt of that page. The Support troubleshooting page for stop codes was not found during the check, so it is not cited. The chkdsk, System File Checker, DISM and Windows 10 ESU pages were opened, and their points are summarised in plain words. The Reliability Monitor, Event Viewer, Startup Repair and System Restore descriptions are hedged because no Microsoft page for them was confirmed in this review.

Sources