When Windows shows "Your PC ran into a problem and needs to restart," it has already saved a stop code — a string like CRITICAL_PROCESS_DIED or MEMORY_MANAGEMENT — and that code, not the restart itself, tells you what failed. Let the 100% collection finish, photograph the screen with your phone, then restart. Everything you do afterward depends on that one line of text.

The Blue Screen Is a Report, Not a Verdict

That message is Windows' bug check screen, and Microsoft's own documentation treats it as a diagnostic report: the stop code at the bottom identifies the exception the kernel hit, and the screen frequently names the failing driver file directly beneath it. The restart is automatic because the kernel can no longer guarantee memory integrity. Skipping the code is the single most common mistake, because the same screen returns days later with no record left behind.

Two settings decide whether you get useful evidence at all. Under Settings > System > About > Advanced system settings > Startup and Recovery, the "Automatically restart" checkbox controls whether the machine reboots before you can read anything; unchecking it holds the blue screen in place until you press a key. The "Write debugging information" dropdown there should read "Automatic memory dump" on a modern machine, which writes a file to C:\Windows\Minidump that later analysis depends on.

Not every crash draws a blue screen. Windows 8 and later show a sad-face screen with a QR code, and some failures — a hard power cut, a frozen frame with no bug check — leave nothing in the dump folder. Check C:\Windows\Minidump and the live kernel reports folder at C:\Windows\LiveKernelReports before concluding the system recorded nothing; a crash with no dump at all points at storage or power rather than software.

Automatic repair loops complicate the picture further. If the machine restarts into "Preparing Automatic Repair" and never reaches the desktop, the stop code flashed for less than a second and the usual advice to "read the screen" fails. In that case your evidence trail is the dump files, the Event Viewer entry, and the recent-change list you rebuild from memory — the steps below cover all three.

Step 1: Capture the Stop Code and Failing File Before You Restart

Do this in the ten seconds the screen stays up, because a photograph costs nothing and memory is unreliable under stress. The layout of the screen is consistent across Windows 10 and 11: the sad face, the apology sentence, a completion percentage, the stop code in capitals, and — when Windows can attribute the fault — a line naming a driver such as nvlddmkm.sys or NETIO.SYS. The percentage matters too: a screen stuck below 100% for several minutes usually means the dump could not be written, which shifts suspicion to the drive.

1: Photograph the entire screen, including the QR code and the small print at the bottom. 2: Note the stop code exactly, underscores included — IRQL_NOT_LESS_OR_EQUAL and IRQL_GT_ZERO_AT_SYSTEM_SERVICE are different faults. 3: Write down the named file, if one appears, and where it sits (\SystemRoot\System32\drivers\ is the common path). 4: Wait for 100% and the restart. If the machine hangs past ten minutes, hold the power button for five seconds. 5: Read the QR code with your phone afterward; it opens a Microsoft page tied to that specific bug check. 6: Once back in Windows, open Event Viewer > Windows Logs > System and find the red "BugCheck" entry, which logs the same code with a timestamp.

If the restart never completes and you land in automatic repair, choose "Continue to Windows" first. If that fails twice, the advanced options menu gives you Safe Mode, which loads a minimal driver set and often reveals whether a third-party driver is at fault simply by letting you in.

Keep the photograph. When you take the machine to a repair shop or post on a support forum, the code and file name turn a vague "it keeps crashing" into a diagnosable case, and technicians triage photograph-in-hand cases faster than descriptions.

Step 2: Match Your Stop Code to the Right Fix

Stop codes cluster into families, and the family narrows the suspect list before you touch a single setting. The table below covers the codes that appear most often on consumer machines, with the first move for each — it is not a complete list, and Microsoft's bug check reference documents the full set.

Stop code Typical cause First action
CRITICAL_PROCESS_DIED A system process terminated; often corrupted system files or an aggressive cleaner tool Run sfc /scannow, then DISM /Online /Cleanup-Image /RestoreHealth in an admin terminal
MEMORY_MANAGEMENT Faulty RAM or a failing memory controller Run Windows Memory Diagnostic (mdsched.exe) overnight; test one stick at a time
IRQL_NOT_LESS_OR_EQUAL A driver touched memory it shouldn't have; frequently a GPU or network driver Update or roll back the last-updated driver; check for overclocking
PAGE_FAULT_IN_NONPAGED_AREA Bad RAM, a corrupted page file, or a misbehaving filter driver Disable overclocks, run chkdsk /f, test RAM
WHEA_UNCORRECTABLE_ERROR Hardware-level error reported by the CPU or bus; heat, power, or failing silicon Check temperatures and PSU first; this code rarely has a software fix
SYSTEM_SERVICE_EXCEPTION A driver or antivirus component faulted in a system call Update the graphics driver and antivirus; test with third-party AV removed
DPC_WATCHDOG_VIOLATION A driver held the processor too long; storage controller or SSD firmware Update SSD firmware and storage drivers; check SATA/NVMe cabling
KERNEL_SECURITY_CHECK_FAILURE Corrupted kernel data structures; often driver or RAM related Run the system file checker, then memory diagnostics

Read the table with one caveat: codes describe symptoms, not causes. MEMORY_MANAGEMENT can fire on a machine with perfect RAM because a driver corrupted a structure, and the memory test is simply the cheapest way to rule the hardware in or out first.

Two codes deserve special handling. WHEA_UNCORRECTABLE_ERROR is the machine reporting a hardware fault through the Windows Hardware Error Architecture, and when it repeats on a stock, cool-running system, the usual suspects are the power supply and the CPU cooler mounting, not Windows. CRITICAL_PROCESS_DIED often follows a "registry cleaner" or debloat script, and Windows' own repair tools are the correct response rather than reinstalling anything.

If the code isn't in the table, search the exact string on Microsoft Learn's bug check reference rather than a generic forum. Parameter values below the code change meaning per bug check, and a forum answer written for a different parameter set can send you down a wrong path.

Step 3: Open the Dump File Without Installing Anything

Windows ships with everything needed to read its own crash dumps, though the tool is hidden. The free WinDbg app from the Microsoft Store, or the older Windows Software Development Kit's debugging tools, opens the .dmp files in C:\Windows\Minidump, and a single command — !analyze -v — produces a verdict naming the faulting module. The output is dense, but one line matters most: "Probably caused by," followed by a driver or component.

The trace is not always honest. A common pattern is the dump blaming ntoskrnl.exe, the Windows kernel itself, which almost never means the kernel is broken — it means the fault happened inside kernel code on behalf of something else, and the actual culprit is a driver that loaded just before the crash. Compare the dump's timestamp with the driver list in Device Manager, sorted by date, to see what changed recently.

Microsoft's documentation notes that small memory dumps, the default at 256 KB or so, contain the bug check parameters, the processor state, and the list of loaded drivers but not full memory contents. That is enough to identify a driver and not enough to debug a memory corruption, which is why the Startup and Recovery setting should be left at "Automatic memory dump" rather than "Small memory dump" if crashes repeat.

When the analyzer names a file you don't recognize, search the filename plus "driver" — almost every one belongs to a named vendor: nvlddmkm.sys to Nvidia's display driver, rtwlane.sys to a Realtek wireless adapter, iaStorAC.sys to Intel's storage controller driver. That mapping is the bridge between a cryptic dump and an update you can actually install.

Step 4: Work Through the Fixes in Cost Order

Fix the cheapest suspects first. Software checks cost time; hardware swaps cost money; a clean Windows install costs an evening. Working out of order means paying for a repair the evidence never supported.

1: Remove recent changes. Uninstall updates and programs installed in the days before the first crash, via Settings > Windows Update > Update history > Uninstall updates, and Settings > Apps > Installed apps sorted by install date. 2: Run the system file checker. In an administrator terminal, sfc /scannow repairs corrupted protected files; follow with DISM /Online /Cleanup-Image /RestoreHealth if SFC reports unfixable corruption. 3: Check the drive. chkdsk C: /f schedules a scan at reboot; failing drives produce a spread of different stop codes rather than one repeating code. 4: Test memory properly. Windows Memory Diagnostic is free but shallow; MemTest86 run overnight from a USB stick catches errors the built-in test misses. 5: Clean-install the GPU driver. Use the vendor's own installer with the "clean install" option, or the display driver uninstaller route, rather than Windows Update's generic driver. 6: Disconnect peripherals. A faulty USB device or dock can trigger bug checks; run a day with the minimum attached. 7: Reset Windows, keeping files. Settings > System > Recovery > Reset this PC removes apps and settings while preserving documents, and it resolves driver-stack corruption a repair install misses.

If the machine crashes during the reset itself, stop clicking and start testing hardware. A reset that fails twice is evidence, not bad luck.

Step 5: Know When the Crash Is Hardware, Not Windows

Roughly speaking, a stop code that changes every time points at software or memory instability; the same code repeating points at one specific component. Temperature is the first thing to rule out, and free tools like HWiNFO report CPU and GPU temperatures in real time — sustained readings near the processor's throttle limit under load, followed by a crash, suggest cooling rather than code.

Memory testing deserves its own evening because RAM faults are intermittent and mimic everything else. MemTest86, free from PassMark Software, boots from a USB stick and runs outside Windows, so it catches errors that a running system conceals; a single error after a full pass justifies testing each stick alone in each slot. Machines with XMP or EXPO memory profiles enabled should be tested with the profile off first, since an unstable overclock produces exactly the symptom set of failing RAM.

Storage is the second hardware suspect. A drive with failing sectors corrupts the page file, the dump-writing process, and system files in ways that generate a different stop code each boot. Manufacturers publish free diagnostic tools — Samsung Magician, Crucial Storage Executive, Western Digital Dashboard — that report drive health and firmware version, and firmware updates for NVMe drives have historically fixed DPC_WATCHDOG_VIOLATION patterns.

Power supplies fail quietly. A PSU that cannot hold voltage under load produces WHEA_UNCORRECTABLE_ERROR and random resets with no dump at all. Swapping in a known-good PSU is the fastest test, though it requires opening the case; if the machine is under warranty, use the manufacturer's service channel instead of voiding it.

Step 6: Recover a PC Stuck in a Restart Loop

A machine that blue-screens before reaching the desktop needs a different approach, because every fix above lives inside Windows. After two failed boots, Windows launches Automatic Repair; from its advanced options you can reach Safe Mode, System Restore, and the command prompt that runs outside the installed system.

Safe Mode is the diagnostic gateway. It loads a minimal driver set, so a crash that disappears in Safe Mode is almost always a third-party driver or startup program — and Device Manager in Safe Mode lets you roll back a driver that updated just before the crashes began. System Restore, reachable from the same menu, rolls back driver and registry changes to a restore point while leaving personal files alone; it only works if restore points existed, which is why leaving System Protection on is worth the disk space.

When Safe Mode and System Restore both fail, the command prompt offers the heavier tools: sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows repairs system files from outside, and bootrec commands rebuild boot records damaged by a failed update. These are recovery-console tools with real consequences if aimed at the wrong partition, so confirm the Windows drive letter first with diskpart and list volume.

If nothing works, the reset options from the recovery menu — keep files or remove everything — reinstall Windows without needing a working desktop. Back up first if the drive is readable from another machine via a USB enclosure; a drive that reads fine elsewhere points back at software, while one that doesn't read anywhere confirms the hardware trail.

Step 7: Stop the Next Crash Before It Happens

Prevention for this failure mode is mostly about keeping the evidence pipeline alive and the driver stack boring. Windows' optional driver updates are the usual source of fresh crashes, and Microsoft's quality-update pause in Settings > Windows Update buys time when a known-bad update is circulating; conversely, GPU and chipset drivers from the vendor's own site are generally more current than Windows Update's versions.

Disk space matters more than people expect. Windows needs several gigabytes free to write a full memory dump during a crash, and a nearly full system drive silently downgrades dump writing — so the next blue screen leaves no usable file. Keep at least 10-15% of the system drive free as a working rule.

A backup habit converts every crash from a crisis into an inconvenience. File History and OneDrive cover documents; a full image tool covers the operating system, and restoring an image takes minutes where a clean install and reconfiguration takes hours. The same logic applies to a small rescue USB with MemTest86 and the Windows installer on it, prepared before it's needed.

Hardware hygiene rounds it out: dust the case and heatsinks annually, keep the machine on a surge protector or UPS, and avoid stacking the tower against a wall where intake air stalls. None of these prevent every crash, but they remove the causes that recur, and they make the next stop code easier to read when one appears.

FAQ

Does the blue screen mean my data is gone?

No — a bug check stops the system but doesn't erase the drive, and modern NTFS journals usually leave documents intact, though unsaved work in open applications is lost. The riskiest moment is actually a hard power-off during the 100% collection, which can corrupt the dump file rather than your documents. Back up before running repairs that touch the disk.

My PC restarted with no blue screen at all — what happened?

A crash with no visible screen usually means the system reset before Windows could draw the bug check, which points at power delivery, overheating, or a hardware fault rather than a driver. Check C:\Windows\Minidump for a fresh file first; if the folder is empty and Event Viewer shows Event ID 41 ("Kernel-Power"), treat it as a power or thermal event. WHEA_UNCORRECTABLE_ERROR in the log confirms the hardware trail.

Is it safe to keep using the PC after one crash?

One isolated crash after a driver update or a power blip is usually harmless, and rebooting is the right response. A second crash within a week with the same stop code changes the picture — that pattern means an unresolved fault, and continuing to work on the machine risks data loss during the next unexpected restart. Investigate before it becomes a loop.

Can a virus cause a blue screen?

Rarely directly — modern malware prefers to stay hidden rather than crash the host — but rootkits and badly written drivers installed by bundled software do trigger bug checks. A full scan with Microsoft Defender or a reputable second-opinion scanner costs nothing and rules it out. If the stop code names a driver you never installed, check its digital signature in Device Manager before trusting it.

How much does it cost to fix a blue-screening PC?

The software path — system file checker, memory test, driver reinstall — costs nothing but a few hours. A RAM kit replacement runs roughly $30–80 for 16 GB depending on generation, an SSD around $40–100 for 1 TB, and a power supply $60–120, so a self-diagnosed hardware fix typically lands under $150. A shop diagnostic fee commonly runs $75–150 on top, which is why the free tests come first.

Why does the same stop code keep coming back after I "fixed" it?

Because most fixes address a symptom unless the dump analysis named the actual faulting module. If !analyze -v pointed at a specific driver, confirm that driver's version actually changed after your update — Windows Update frequently reinstalls an older one. Also check whether the crash timing correlates with a specific action: sleep, wake, a game, or a USB device.

Does resetting Windows keep the crash logs?

A keep-files reset removes installed programs and driver changes but preserves the C:\Windows\Minidump folder in most cases, since it sits inside the Windows directory the reset rebuilds. A remove-everything reset wipes them. Copy the minidump folder to a USB stick before resetting; the evidence costs nothing to keep and everything to lose.