Error Medic

BSOD Windows 11: How to Fix Blue Screen of Death Errors (Complete Guide)

Fix BSOD errors on Windows 11, 8, and Vista with step-by-step commands, driver rollbacks, memory tests, and registry repairs. Resolve stop codes fast.

Last updated:
Last verified:
1,948 words
Key Takeaways
  • Root Cause 1: Faulty, outdated, or incompatible device drivers are the #1 trigger for BSOD stop codes such as DRIVER_IRQL_NOT_LESS_OR_EQUAL (0x000000D1) and PAGE_FAULT_IN_NONPAGED_AREA (0x00000050).
  • Root Cause 2: Corrupted system files, bad RAM modules, overheating hardware, or incompatible Windows updates (especially cumulative updates on Windows 11 22H2/23H2) cause CRITICAL_PROCESS_DIED (0x000000EF) and SYSTEM_SERVICE_EXCEPTION (0x0000003B).
  • Quick Fix Summary: Boot into Safe Mode, run 'sfc /scannow' and DISM repair commands, update or roll back suspect drivers, run Windows Memory Diagnostic, and if needed perform a Startup Repair or clean-boot troubleshooting sequence.
Fix Approaches Compared
MethodWhen to UseTimeRisk
SFC + DISM System File RepairCorrupted OS files, random BSODs after update10-30 minLow
Driver Rollback / UpdateBSOD after installing new hardware or Windows update5-15 minLow
Windows Memory DiagnosticBSOD with MEMORY_MANAGEMENT (0x0000001A) or random crashes30-60 minNone
Uninstall Recent Windows UpdateBSOD started immediately after Patch Tuesday or cumulative update10-20 minLow
Startup Repair (WinRE)Cannot boot into Windows at all; looping BSOD15-40 minLow
System RestoreBSOD started after a specific software or driver installation20-45 minLow-Medium
Reset This PC (Keep Files)Persistent BSODs that survive all other fixes1-3 hoursMedium
Clean Windows 11 ReinstallHardware confirmed good but OS is severely corrupted2-4 hoursHigh (data loss)

Understanding the Blue Screen of Death on Windows 11

A Blue Screen of Death (BSOD) — also called a Stop Error — occurs when Windows encounters a critical system fault it cannot recover from safely. The OS halts all processes, writes a memory dump to disk, and displays a blue screen with a stop code. On Windows 11, the BSOD also shows a QR code and a sad-face emoji (:(), while Windows 8 introduced the modernized layout and Windows Vista used the classic wall-of-text format.

Common stop codes you will encounter include:

  • DRIVER_IRQL_NOT_LESS_OR_EQUAL (0x000000D1) — driver accessing restricted memory
  • PAGE_FAULT_IN_NONPAGED_AREA (0x00000050) — invalid memory address referenced
  • CRITICAL_PROCESS_DIED (0x000000EF) — critical OS process terminated unexpectedly
  • SYSTEM_SERVICE_EXCEPTION (0x0000003B) — unhandled exception in system service
  • MEMORY_MANAGEMENT (0x0000001A) — RAM corruption or misconfiguration
  • KERNEL_SECURITY_CHECK_FAILURE (0x00000139) — data structure integrity violation
  • WHEA_UNCORRECTABLE_ERROR (0x00000124) — hardware-level uncorrectable error

Step 1: Record the Stop Code and Boot into Safe Mode

When the BSOD appears, photograph the screen or note:

  1. The stop code (e.g., CRITICAL_PROCESS_DIED)
  2. The failing module listed below the QR code (e.g., nvlddmkm.sys = NVIDIA driver)

If Windows keeps rebooting into BSOD:

  1. Force-shutdown the PC three times to trigger Automatic Repair.
  2. Go to Advanced Options → Startup Settings → Restart → Press 4 to boot Safe Mode.
  3. Alternatively, press F8 during boot on Windows Vista/8 systems.

Step 2: Analyze the Memory Dump

Windows writes crash dumps to C:\Windows\Minidump\. Open **Event Viewer** (eventvwr.msc) → Windows Logs → System and filter for Error events at the crash timestamp.

For deeper analysis, download WinDbg from the Microsoft Store and run:

!analyze -v

This outputs the faulting driver, memory address, and call stack — critical for identifying the root cause.


Step 3: Repair Corrupted System Files with SFC and DISM

Open Command Prompt as Administrator and run the following sequence:

DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow

Wait for each command to complete. If SFC reports Windows Resource Protection found corrupt files but was unable to fix some of them, boot from Windows installation media and run:

sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows

Step 4: Update or Roll Back Drivers

If the BSOD names a .sys file (e.g., ntfs.sys, dxgkrnl.sys, nvlddmkm.sys):

  1. Open Device Manager (devmgmt.msc).
  2. Right-click the suspect device → Properties → Driver tab.
  3. Click Roll Back Driver if the option is available.
  4. If rolling back is not available, right-click → Update driver → Search automatically.
  5. For GPU BSODs, download the latest driver directly from NVIDIA, AMD, or Intel and perform a Clean Installation.

Check driver verifier (use only in Safe Mode, revert after testing):

verifier /standard /all

Restart and reproduce the crash; the verifier will identify the offending driver. Disable after testing:

verifier /reset

Step 5: Test RAM with Windows Memory Diagnostic

  1. Press Win+R, type mdsched.exe, press Enter.
  2. Choose Restart now and check for problems.
  3. After restart, the tool runs automatically. Check results in Event Viewer → Windows Logs → System, filter by source MemoryDiagnostics-Results.

For advanced RAM testing, use MemTest86 (bootable USB) and run at least two full passes. Any errors confirm faulty RAM requiring replacement.


Step 6: Uninstall Problematic Windows Updates

If the BSOD started after a specific update:

  1. Go to Settings → Windows Update → Update History → Uninstall Updates.
  2. Identify and uninstall the most recent Cumulative Update or Quality Update.
  3. Via Command Prompt:
wusa /uninstall /kb:KB5031354 /quiet /norestart

(Replace KB number with the relevant update.)

  1. Pause updates for 7 days while Microsoft issues a fix.

Step 7: Check Disk Health

A failing drive can cause NTFS_FILE_SYSTEM or INACCESSIBLE_BOOT_DEVICE BSODs.

chkdsk C: /f /r /x

For NVMe/SSD drives, use the manufacturer's diagnostic tool (Samsung Magician, Crucial Storage Executive, CrystalDiskInfo) to check the health status and reallocated sector count.


Step 8: Perform a Startup Repair (When You Cannot Boot)

  1. Boot from Windows 11 installation USB.
  2. Repair your computer → Troubleshoot → Advanced Options → Startup Repair.
  3. If Startup Repair fails, try Command Prompt from WinRE:
bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd

Step 9: System Restore or Reset

If all else fails:

  • System Restore: Go to Advanced Options → System Restore and choose a restore point before the BSODs began.
  • Reset This PC: Settings → System → Recovery → Reset this PC → Keep my files to reinstall Windows while preserving personal data.

Windows Vista and Windows 8 Specific Notes

Windows Vista: BSODs often stem from incompatible drivers after Service Pack installation. Use verifier.exe and check C:\Windows\Minidump with WinDbg. Disable Driver Signature Enforcement at boot (F8 menu) to test unsigned drivers.

Windows 8/8.1: The automatic reboot loop can hide BSODs. Disable auto-restart: System Properties → Advanced → Startup and Recovery → uncheck Automatically restart. Windows 8 also introduced Automatic Repair — if it loops, boot to Safe Mode via msconfig → Boot tab → Safe boot.

Frequently Asked Questions

powershell
# ============================================================
# Windows BSOD Diagnostic & Repair Script
# Run as Administrator in PowerShell
# Compatible with Windows Vista, 8, 11
# ============================================================

Write-Host "=== Step 1: Check System File Integrity ==="
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow

Write-Host "`n=== Step 2: Check Disk Health ==="
# Schedule chkdsk on next reboot (C: drive)
echo Y | chkdsk C: /f /r /x

Write-Host "`n=== Step 3: List Recent Minidump Files ==="
$minidumpPath = "C:\Windows\Minidump"
if (Test-Path $minidumpPath) {
    Get-ChildItem -Path $minidumpPath -Filter "*.dmp" | Sort-Object LastWriteTime -Descending | Select-Object Name, LastWriteTime, Length
} else {
    Write-Host "No minidump folder found. Enable small memory dumps in System Properties."
}

Write-Host "`n=== Step 4: Extract Last BSOD Event from Event Log ==="
Get-WinEvent -LogName System | Where-Object { $_.Id -eq 41 -or $_.Id -eq 1001 -or $_.Id -eq 6008 } | Select-Object -First 10 | Format-List TimeCreated, Id, Message

Write-Host "`n=== Step 5: List Recently Installed Drivers ==="
Get-WmiObject Win32_PnPSignedDriver | Sort-Object DriverDate -Descending | Select-Object -First 20 DeviceName, DriverVersion, DriverDate, InfName | Format-Table -AutoSize

Write-Host "`n=== Step 6: Check for Pending Windows Updates ==="
(New-Object -ComObject Microsoft.Update.Session).CreateUpdateSearcher().Search("IsInstalled=0").Updates | Select-Object Title, IsDownloaded

Write-Host "`n=== Step 7: Check RAM Configuration ==="
Get-WmiObject -Class Win32_PhysicalMemory | Select-Object BankLabel, Capacity, Speed, Manufacturer, PartNumber | Format-Table -AutoSize

Write-Host "`n=== Step 8: Verify Boot Configuration ==="
bcdedit /enum all

Write-Host "`n=== Step 9: Temperature & Hardware Status (requires admin) ==="
# Check for overheating events
Get-WinEvent -LogName System | Where-Object { $_.Message -like "*thermal*" -or $_.Message -like "*overheat*" } | Select-Object -First 5 TimeCreated, Message

Write-Host "`n=== Step 10: Export Full System Info ==="
$reportPath = "$env:USERPROFILE\Desktop\BSOD_SystemReport_$(Get-Date -Format 'yyyyMMdd_HHmmss').txt"
Get-ComputerInfo | Out-File -FilePath $reportPath
Write-Host "System info saved to: $reportPath"

Write-Host "`n=== Diagnostic Complete ==="
Write-Host "Review minidumps with WinDbg from the Microsoft Store for deep analysis."
Write-Host "Run: windbg -z C:\Windows\Minidump\<filename>.dmp then type: !analyze -v"

# To enable Driver Verifier (ONLY in Safe Mode, REVERT after testing):
# verifier /standard /all
# To reset Driver Verifier:
# verifier /reset

# To uninstall a specific Windows Update (replace KB number):
# wusa /uninstall /kb:KB5031354 /quiet /norestart
E

Error Medic Editorial

The Error Medic Editorial team consists of senior DevOps engineers, SREs, and Microsoft-certified system administrators with 10+ years of experience diagnosing and resolving Windows kernel errors, BSOD stop codes, and enterprise infrastructure failures. Our guides combine real-world incident data, official Microsoft documentation, and community-validated fixes to help users at every skill level resolve critical system errors quickly and safely.

Sources

Related Articles in Other Bsod Windows

Explore More windows Guides