Error Medic

Computer Blue Screen (BSOD) Fix: Stop Codes, Memory Management, Startup & Game Crashes

Fix computer blue screen errors (BSOD) on Windows with step-by-step commands, stop code analysis, memory management fixes, and game crash solutions. Updated 202

Last updated:
Last verified:
2,296 words
Key Takeaways
  • Blue Screen of Death (BSOD) errors are caused by hardware faults (faulty RAM, failing HDD/SSD, bad USB devices), outdated or corrupt drivers, overheating components, or corrupted Windows system files.
  • Common stop codes include MEMORY_MANAGEMENT (0x0000001A), IRQL_NOT_LESS_OR_EQUAL (0x0000000A), CRITICAL_PROCESS_DIED (0xEF), SYSTEM_THREAD_EXCEPTION_NOT_HANDLED, and PAGE_FAULT_IN_NONPAGED_AREA.
  • Quick fix summary: Boot into Safe Mode, run 'sfc /scannow' and 'chkdsk', update or roll back drivers, test RAM with Windows Memory Diagnostic, check Event Viewer logs, and if all else fails perform a Windows Reset or clean install.
Blue Screen Fix Approaches Compared
MethodWhen to UseTimeRisk
SFC & DISM ScanCorrupted system files, BSOD on startup10-30 minLow
Driver Rollback / UpdateBSOD after driver install, game crashes, USB BSOD5-20 minLow
Windows Memory DiagnosticMEMORY_MANAGEMENT stop code, random BSOD30-60 minLow
MemTest86 (Bootable)Persistent RAM errors, computer won't boot2-8 hrsLow
Check Disk (chkdsk)BSOD on startup, disk-related stop codes15-60 minLow-Medium
Safe Mode BootComputer blue screens every time it turns on5 minLow
Clean Boot (msconfig)BSOD randomly or during games10 minLow
Windows Startup RepairComputer blue screened and won't boot15-30 minLow
Device Manager USB FixBSOD when plugging in USB device5-10 minLow
Windows Reset / ReinstallAll other fixes failed, constant blue screening1-4 hrsMedium-High

Understanding the Blue Screen of Death (BSOD)

A Blue Screen of Death (BSOD) occurs when Windows encounters a fatal system error it cannot recover from. The screen displays a stop code (e.g., MEMORY_MANAGEMENT, IRQL_NOT_LESS_OR_EQUAL) and a QR code. Windows then writes a memory dump file to C:\Windows\Minidump\ for later analysis.

Common stop codes and their meanings:

  • 0x0000001A – MEMORY_MANAGEMENT: Faulty RAM, corrupt page file, or driver memory issues.
  • 0x0000000A – IRQL_NOT_LESS_OR_EQUAL: Driver accessing invalid memory address; often a GPU or NIC driver.
  • 0x000000EF – CRITICAL_PROCESS_DIED: A critical Windows process terminated unexpectedly.
  • 0x0000007E – SYSTEM_THREAD_EXCEPTION_NOT_HANDLED: A system thread threw an exception that was not handled; usually driver-related.
  • 0x00000050 – PAGE_FAULT_IN_NONPAGED_AREA: Bad RAM, corrupt page file, or incompatible driver.
  • 0xC000021A – STATUS_SYSTEM_PROCESS_TERMINATED: Winlogon or CSRSS crashed; often after Windows Update.

Step 1: Record the Stop Code and Identify the Trigger

Before fixing anything, identify when the BSOD occurs:

  • On startup → Likely a boot driver, corrupt MBR/BCD, or failing disk.
  • Randomly → Overheating, faulty RAM, or unstable drivers.
  • During games → GPU driver issues, overheating GPU/CPU, or RAM instability.
  • When plugging in USB device → Corrupt USB driver or driver conflict.
  • After Windows Update → Roll back the update or the updated driver.

Write down or photograph the stop code shown on the blue screen.


Step 2: Boot into Safe Mode (if the PC won't start normally)

If your computer blue screened and won't boot:

  1. Power on the PC and force shutdown 3 times during the Windows logo to trigger Automatic Repair.
  2. Choose Advanced Options → Troubleshoot → Advanced Options → Startup Settings → Restart.
  3. Press F4 for Safe Mode or F5 for Safe Mode with Networking.

Alternatively, boot from a Windows 10/11 USB installer, choose Repair your computer → Troubleshoot → Startup Repair.


Step 3: Analyze Minidump Files

In Safe Mode or on a working PC, analyze dump files:

C:\Windows\Minidump\*.dmp

Use WinDbg (Windows Debugger) or the free WhoCrashed tool to identify the faulting driver or module. The output will show lines like:

Faulting module: nvlddmkm.sys  (NVIDIA display driver)
BugCheck code:   0x116 (VIDEO_TDR_FAILURE)

This immediately tells you to update or reinstall your GPU driver.


Step 4: Run System File Checker and DISM

Corrupted Windows system files are a top cause of BSOD on startup and constant blue screening. Run these commands as Administrator:

# Repair Windows system files
sfc /scannow

# If SFC reports errors it couldn't fix, use DISM to repair the component store
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth

# Run SFC again after DISM completes
sfc /scannow

Restart after completion and test.


Step 5: Fix Memory Management BSOD (RAM Testing)

For MEMORY_MANAGEMENT or PAGE_FAULT_IN_NONPAGED_AREA stop codes:

Option A – Windows Memory Diagnostic (built-in):

  1. Press Win + R, type mdsched.exe, press Enter.
  2. Choose Restart now and check for problems.
  3. Windows will run two passes; results appear on login.

Option B – MemTest86 (more thorough, bootable):

  1. Download MemTest86 from memtest86.com.
  2. Create a bootable USB, boot from it.
  3. Run at least 2 full passes (4+ hours for thoroughness).
  4. Any reported errors = faulty RAM that must be replaced.

Reseat RAM: Power off, remove RAM sticks, clean gold contacts with an eraser, and firmly reseat. Try one stick at a time to identify a bad module.


Step 6: Check Disk for Errors

For BSODs on startup or with storage-related stop codes:

# Schedule disk check on next reboot (C: drive)
chkdsk C: /f /r /x
# Type Y when prompted, then reboot

For SSDs, also check drive health:

# Using Windows built-in SMART check
wmic diskdrive get status

# For detailed info, use CrystalDiskInfo (GUI) or smartctl
smartctl -a /dev/sda

Step 7: Update or Roll Back Drivers

To roll back a driver (e.g., after Windows Update caused BSOD):

  1. Open Device Manager (devmgmt.msc).
  2. Right-click the device (e.g., Display adapters → NVIDIA GeForce).
  3. Select Properties → Driver → Roll Back Driver.

To update GPU drivers (fixes most game-related BSODs):

  • NVIDIA: Download from nvidia.com, choose Custom Install → Clean Installation.
  • AMD: Use AMD Cleanup Utility first, then install fresh drivers.

For USB BSOD (blue screen when plugging in USB device):

# In Device Manager, uninstall USB controllers
# Then in an elevated PowerShell:
pnputil /scan-devices

# Or disable USB selective suspend
powercfg /setacvalueindex SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0
powercfg /apply

Step 8: Fix Blue Screens During Gaming

Game-triggered BSODs are usually GPU driver crashes, overheating, or RAM instability under load.

  1. Check temperatures: Use HWMonitor or MSI Afterburner. GPU should stay below 90°C, CPU below 95°C. Clean dust from fans/heatsinks if temps are high.
  2. Stress test GPU: Run FurMark for 15 minutes; if it BSODs, driver or GPU hardware is faulty.
  3. Lower GPU overclock: If you've overclocked, revert to stock clocks via MSI Afterburner.
  4. Set page file to auto-managed: System Properties → Advanced → Performance Settings → Advanced → Virtual Memory → System Managed.
  5. Verify game files: Steam → Right-click game → Properties → Local Files → Verify integrity.

Step 9: Check Event Viewer for Root Cause

# Open Event Viewer via Run dialog
eventvwr.msc

Navigate to Windows Logs → System and filter for Critical and Error events around the time of the BSOD. Look for:

  • Source: Microsoft-Windows-WER-SystemErrorReporting (Event ID 1001)
  • Source: Kernel-Power (Event ID 41) — indicates unexpected shutdown
  • Source: disk — indicates storage problems

Step 10: Nuclear Option – Windows Reset or Reinstall

If the computer is blue screening constantly and none of the above fixes work:

Option A – Keep your files: Settings → System → Recovery → Reset this PC → Keep my files

Option B – Clean install:

  1. Download the Media Creation Tool from microsoft.com.
  2. Create a bootable USB (8GB+).
  3. Boot from USB, choose Custom: Install Windows only.
  4. Delete existing partitions (backup data first!) and install fresh.

Note on Mac/Apple Blue Screen

Apple Mac computers running macOS do not display a traditional BSOD. Instead, they show a kernel panic — a grey or black screen with text. If you see a persistent blue screen on a Mac during startup, it is typically a display driver, GPU, or startup item issue. Boot into Safe Mode by holding Shift at startup, then remove recently installed apps or login items. For hardware GPU issues on older MacBooks, an SMC/PRAM reset often helps.

Gateway computers and other branded Windows desktops follow the same BSOD troubleshooting steps outlined above — the brand does not change the Windows stop code resolution process.

Frequently Asked Questions

bash
# ============================================================
# BSOD Comprehensive Diagnostic & Fix Script (Run as Admin)
# Compatible with Windows 10 and Windows 11
# ============================================================

# --- 1. View recent BSOD stop codes from Event Log ---
Get-WinEvent -LogName System | Where-Object { $_.Id -eq 1001 -or $_.Id -eq 41 } | Select-Object TimeCreated, Id, Message | Format-List

# --- 2. List minidump files for analysis ---
Get-ChildItem -Path "C:\Windows\Minidump\" -Filter "*.dmp" | Sort-Object LastWriteTime -Descending | Select-Object Name, LastWriteTime, Length

# --- 3. Run System File Checker ---
sfc /scannow

# --- 4. Run DISM to repair Windows component store ---
DISM /Online /Cleanup-Image /RestoreHealth

# --- 5. Schedule Check Disk on next reboot ---
chkdsk C: /f /r /x
# Enter Y when prompted, then reboot manually

# --- 6. Check SMART status of all drives ---
wmic diskdrive get model,status

# --- 7. Run Windows Memory Diagnostic ---
mdsched.exe
# This opens GUI -- choose "Restart now and check for problems"

# --- 8. Check for overheating via WMI (CPU temp) ---
Get-WmiObject MSAcpi_ThermalZoneTemperature -Namespace root/wmi | Select-Object CurrentTemperature | ForEach-Object { $_.CurrentTemperature / 10 - 273.15 }

# --- 9. Uninstall problematic USB drivers (fix USB BSOD) ---
pnputil /enum-drivers | Select-String -Pattern "usb"
# To remove a specific driver package:
# pnputil /delete-driver oem<NUMBER>.inf /uninstall /force

# --- 10. Disable USB Selective Suspend (prevents USB BSOD) ---
powercfg /setacvalueindex SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0
powercfg /setdcvalueindex SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0
powercfg /apply

# --- 11. Check for corrupt page file and reset ---
wmic computersystem set AutomaticManagedPagefile=True

# --- 12. Roll back last Windows Update (if BSOD started post-update) ---
wusa /uninstall /kb:<KB_NUMBER> /quiet /norestart
# Replace <KB_NUMBER> with the update ID from: wmic qfe list brief /format:table

# --- 13. Export system info for further analysis ---
msinfo32 /nfo C:\SystemInfo.nfo

# --- 14. BCD repair commands (run from Windows Recovery Command Prompt) ---
# bootrec /fixmbr
# bootrec /fixboot
# bootrec /scanos
# bootrec /rebuildbcd

# --- 15. Clean boot to isolate startup programs (non-Microsoft services) ---
# Run: msconfig
# Go to Services tab -> Check "Hide all Microsoft services" -> Disable All
# Go to Startup tab -> Open Task Manager -> Disable all startup items
# Reboot and test

Write-Host "Diagnostic commands complete. Review output above for errors." -ForegroundColor Green
E

Error Medic Editorial

The Error Medic Editorial team is composed of senior DevOps engineers, SREs, and Windows system administrators with 10+ years of experience diagnosing and resolving OS-level failures, stop code errors, and hardware faults across enterprise and consumer environments. Our guides combine real-world troubleshooting experience with verified commands tested on Windows 10 and Windows 11.

Sources

Related Articles in Other Computer Blue Screen

Explore More windows Guides