Performance

How to fix a blue screen in Windows

Read the stop code on a Windows 10 or 11 blue screen, undo the last driver or update, and repair system files before you reinstall.

5 min read Published on October 20, 2026

A blue stop screen next to the reliability history.

Steps in pictures

Write down the stop code.
Reliability Monitor shows what changed.
Roll back the last driver or update.

Did the PC turn blue for a second, show a strange code, and restart, or does it crash every time you open the same program?

Applies to: Windows 10 and Windows 11.

What’s going on

A blue screen (Windows calls it a stop error) means Windows halted so it would not corrupt more data. A single case after a power cut may not come back. If it returns, you need to read the code and undo the last change, not reinstall blindly.

A badly written driver, failing memory, a dying disk, or a damaged Windows file can cause it. The important text is the code, something like DRIVER_IRQL_NOT_LESS_OR_EQUAL, MEMORY_MANAGEMENT, SYSTEM_SERVICE_EXCEPTION, CRITICAL_PROCESS_DIED, or WHEA_UNCORRECTABLE_ERROR. You do not need to memorize all of them. MEMORY_MANAGEMENT often points at RAM. WHEA_UNCORRECTABLE_ERROR smells like hardware (processor, power supply, NVMe disk). Codes that name a .sys file are usually a driver: graphics, network, or a third-party antivirus.

Write the code down with your phone. The screen goes away quickly. If automatic restart is on, sometimes there is no time to read it: you can read it later in reliability history.

Steps

  1. Write down the code and what changed yesterday

    Write the text in capitals and, if it appears, the .sys file. Think about what happened just before: a new driver, an update, a cleaner, a knock to the laptop, RAM you just installed. If you installed a driver, be ready to roll it back as in how to update drivers. If the computer never reaches the desktop, go into safe mode and uninstall from there.

  2. Open reliability history

    In the Start menu, search for “View reliability history”. On the timeline, the red crosses on the day of the crash can be opened. Windows names the driver or the update involved. Event Viewer works too: right-click Start › Event Viewer › Windows Logs › System, and filter by source BugCheck. You do not need to understand every line: keep the code and the time.

  3. Undo the last driver or update

    If the driver’s Roll Back Driver button is available, use it and restart. If the blue screen started after a patch Tuesday, go to Settings › Windows Update › Update history › Uninstall updates, and remove the most recent one. Do not remove five at once. If the desktop still holds, create a restore point first with how to create a restore point, in case the next step is not convincing either.

  4. Repair Windows files

    Right-click Start › Terminal (Admin). On Windows 10 it may be called Windows PowerShell (Admin). Copy these commands, one after the other, and wait until each one finishes. The first can take a long time:

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

DISM repairs the component store using Windows Update. SFC checks protected files. If it says it repaired something, restart. If it says it could not, write that down: sometimes you need a reset that keeps your files, and that is not the first move.

  1. Test the memory if the code mentions memory

    Search for “Windows Memory Diagnostic”. Choose to restart and check. The PC boots into a light blue screen that is the test, not another crash. When Windows returns, open Event Viewer › Windows Logs › System › source MemoryDiagnostics-Results. If there are errors, that RAM module is bad: on a desktop you can test by removing one module; on a laptop with soldered memory, it needs a repair shop. Do not keep using the computer for work without a backup.

  2. Watch the disk if the crash comes with long freezes

    A disk that dies in the middle of a write also ends in a blue screen. If there are noises, folders that take forever, or the code changes every time, stop and read how to check whether the disk is failing. Resetting Windows on a dying disk makes file recovery worse.

If this doesn’t work

The blue screen loops and you never reach the desktop

You need safe mode or, if even that fails, the installation USB to open repair. In safe mode, uninstall the driver or the program you just added. Do not click Remove everything in recovery if you have not copied your files.

It only crashes inside a game

It can be a hot graphics card or its driver. Lower the game’s graphics for a moment, update or roll back only the display driver, and watch the temperature with how to keep the PC from overheating. If the desktop never turns blue, do not reinstall Windows for a single game.

The code is WHEA and it repeats while idle

That points at hardware: power supply, CPU, NVMe. A new driver rarely explains it if it also happens on an empty desktop. Write the code down for the repair shop and copy your files as soon as you can. Changing registry settings does not fix a hardware WHEA.

After SFC everything is the same

Restore the point from before the problem. If there is no point and the crash is constant, a reset that keeps your files is the next step, described in how to reinstall Windows 11 without losing files. Exhaust the driver and the memory first.

Frequently asked questions

Have my documents been deleted?

The blue screen does not delete them. A disk that is failing can have damaged them. If the desktop comes back, copy what matters today, not next week.

Should automatic restart be turned off so the code can be read?

Yes, if the screen goes away too fast. Search for “View advanced system settings” › Startup and Recovery › Settings, and clear Automatically restart. The next time, the screen stays until you restart. Turn the box back on once you have the code, so a minor fault does not leave you stuck.

Does a registry optimizer prevent blue screens?

No. It can cause them if it touches keys that belong to a driver. Uninstall it if you added it just before the first crash.

Is every blue screen serious?

A single one, after a power cut or when the laptop wakes, may not repeat. Two or three in a week, with the same code, do deserve the steps in this guide.