Independent guides. Not affiliated with Microsoft. We never ask you to call, pay, or let anyone connect to your PC.

How we work
Fixpath

FixBlue screens

What to do after a blue screen (BSOD)

Applies to
Windows 11 and Windows 10
Difficulty
Moderate
Time
About 60 min
Risk
Changes settings
Reviewed

Quick answer

One crash on its own is rarely serious: write down the stop code, restart and carry on. If it happens again, undo whatever changed recently, install updates, then test your memory and repair system files.

A blue screen (Microsoft calls it a stop error) means Windows hit a problem it couldn't safely recover from, so it stopped and restarted rather than risk damaging your files. On Windows 11 version 24H2 and later the screen is black instead of blue, but it works the same way. Microsoft's own crash analysis puts most stop errors down to drivers, with hardware next, so that's where these fixes focus.

Fix 1Write down the stop code

The stop code, a name in capitals such as CRITICAL_PROCESS_DIED, is the best clue to the cause. Some screens also name the file involved, often a driver ending in .sys. Knowing both saves a lot of guesswork.

  1. If the screen appears again, take a photo of it with your phone. Look for the stop code near the bottom and, if shown, a file name (on many PCs it follows What failed).
  2. If the PC restarts too quickly to read it, turn off automatic restart. Press Windows + R, type the command below and press Enter.
    Run box
    sysdm.cpl
    How do I open the Run box?

    Press Windows + R, type or paste the text, then press Enter.

  3. On the Advanced tab, under Startup and Recovery, select Settings. Clear Automatically restart and select OK. Next time, the screen stays up until you restart the PC yourself.
  4. Look up your code in the error code library. Common ones include CRITICAL_PROCESS_DIED, IRQL_NOT_LESS_OR_EQUAL and PAGE_FAULT_IN_NONPAGED_AREA.

Fixed? You can stop here. Still happening: go to Fix 2

Fix 2Check the crash history in Reliability Monitor

Reliability Monitor is a built-in timeline of crashes, app failures and installs. It shows whether the crash is repeating, the stop code for each one, and what else was installed around the same day. It only reads history; it changes nothing.

  1. Press Windows + R, type the command below and press Enter.
    Run box
    perfmon /rel
  2. In the chart, red circles with an X mark critical events. Select a day that has one.
  3. In the list below, a stop error usually appears as Windows with the summary Shut down unexpectedly. Double-click it to see the technical details, which include the stop code as a short hex number (for example, ef means CRITICAL_PROCESS_DIED).
  4. Look at the blue information icons on the same day or just before: a new driver, app or Windows update there is your first suspect.

Fixed? You can stop here. Still happening: go to Fix 3

Fix 3Undo the most recent change

Stop errors very often begin right after something changes: new hardware, a new or updated driver, a new app (especially security software, VPNs and system utilities) or a Windows update. Reversing that change is the quickest test.

  1. If you added hardware just before the crashes started, shut down, remove it and restart.
  2. If a driver changed, right-click Start and open Device Manager (the list of every part Windows knows about). Right-click the device, select Properties, open the Driver tab and select Roll Back Driver. While you're there, look for any device marked with a yellow exclamation mark.
  3. If you installed an app, remove it from Settings then Apps then Installed apps (on Windows 10, Settings then Apps then Apps & features).
  4. If the crashes began after a Windows update, see uninstall an update that caused problems.

Fixed? You can stop here. Still happening: go to Fix 4

Fix 4Install Windows and driver updates

Microsoft and device makers regularly fix crash bugs in drivers and in Windows itself. Windows Update delivers many of these fixes, including some driver updates that only appear under optional updates.

  1. Open Settings then Windows Update and select Check for updates (on Windows 10, Settings then Update & Security then Windows Update). Install everything offered.
  2. Go to Settings then Windows Update then Advanced options then Optional updates and install any driver updates. On Windows 10, select View optional updates.
  3. Restart, even if Windows didn't ask you to.
  4. If the stop screen named a driver for your graphics, network or storage hardware, check your PC maker's support site for a newer version.
  5. While you're in Settings, check Settings then System then Storage. Microsoft suggests keeping 10 to 15 percent of the drive free; see free up disk space safely if it's tighter than that.

Fixed? You can stop here. Still happening: go to Fix 5

Fix 5Test your memory and repair system files

Faulty RAM (your PC's working memory) and damaged system files both cause crashes, often with a different stop code each time. Windows Memory Diagnostic tests the RAM before Windows loads, and the System File Checker replaces damaged Windows files with good copies.

  1. Save your work. Press Windows + R, type the command below, press Enter, and select Restart now and check for problems (recommended).
    Run box
    mdsched.exe
  2. The test runs and Windows restarts. After you sign in, a notification shows the result. If it reports a hardware problem, the memory needs attention from your PC maker or a local repair shop.
  3. Select Start, type cmd, right-click Command Prompt and select Run as administrator. Repair Windows' store of system files first:
    Command Prompt as administrator
    DISM.exe /Online /Cleanup-image /Restorehealth
    How do I open Command Prompt as administrator?

    Select Start and type cmd. Right-click Command Prompt, select Run as administrator, then select Yes.

    It should end with "The restore operation completed successfully."
  4. Then check the system files:
    Command Prompt as administrator
    sfc /scannow
    "Did not find any integrity violations" or "successfully repaired them" are both good results. Restart afterward.

Fixed? You can stop here. Still happening: go to Fix 6

Fix 6If it crashes every time Windows starts

When you can't stay in Windows long enough to try the fixes above, Windows' recovery screen lets you start in Safe Mode, which loads only basic drivers, or roll back recent changes without starting Windows normally.

  1. Turn the PC on and hold the power button for about 10 seconds as soon as the logo appears. Do this twice. On the third start, Windows should show the Automatic Repair screen. Select Advanced options.
  2. For Safe Mode, go to Troubleshoot then Advanced options then Startup Settings, select Restart, then press 4 or F4. From there you can roll back drivers and uninstall apps as described above.
  3. To undo recent changes, use Troubleshoot then Advanced options then Uninstall Updates or Troubleshoot then Advanced options then System Restore.

If BitLocker asks for a recovery key, get it at account.microsoft.com/devices/recoverykey. See the Safe Mode guide, the System Restore guide and the Automatic Repair loop page for step-by-step detail.

Fixed? You can stop here. Still happening: what to do next

If none of these worked

Stop here rather than trying riskier changes. These are the right places to go next:

Never call a phone number shown in a pop-up, or let someone you don't know connect to your PC. Microsoft doesn't put phone numbers in error messages. How to spot a tech-support scam

Sources and review

Checked against Microsoft's own documentation:

Last reviewed . Spotted a step that doesn't match your screen? Tell us and we'll check it.