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.
- 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).
- If the PC restarts too quickly to read it, turn off automatic restart. Press Windows + R, type the command below and press Enter.
sysdm.cplHow do I open the Run box?
Press Windows + R, type or paste the text, then press Enter.
- 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.
- 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.
- Press Windows + R, type the command below and press Enter.
perfmon /rel - In the chart, red circles with an X mark critical events. Select a day that has one.
- 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,
efmeans CRITICAL_PROCESS_DIED). - 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.
- If you added hardware just before the crashes started, shut down, remove it and restart.
- 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.
- If you installed an app, remove it from Settings then
Apps then (on Windows 10, Settings thenInstalled apps Apps then ).Apps & features - 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.
- Open Settings then
Windows Update and select Check for updates (on Windows 10, Settings thenUpdate & Security then ). Install everything offered.Windows Update - Go to Settings then
Windows Update then and install any driver updates. On Windows 10, select View optional updates.Advanced options then Optional updates - Restart, even if Windows didn't ask you to.
- 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.
- While you're in Settings, check Settings then
System then . Microsoft suggests keeping 10 to 15 percent of the drive free; see free up disk space safely if it's tighter than that.Storage
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.
- Save your work. Press Windows + R, type the command below, press Enter, and select Restart now and check for problems (recommended).
mdsched.exe - 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.
- Select Start, type cmd, right-click Command Prompt and select Run as administrator. Repair Windows' store of system files first:
It should end with "The restore operation completed successfully."
DISM.exe /Online /Cleanup-image /RestorehealthHow do I open Command Prompt as administrator?
Select Start and type cmd. Right-click Command Prompt, select Run as administrator, then select Yes.
- Then check the system files:
"Did not find any integrity violations" or "successfully repaired them" are both good results. Restart afterward.
sfc /scannow
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.
- 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.
- For Safe Mode, go to Troubleshoot then
Advanced options then , select Restart, then press 4 or F4. From there you can roll back drivers and uninstall apps as described above.Startup Settings - To undo recent changes, use Troubleshoot then
Advanced options then or Troubleshoot thenUninstall Updates 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:
- Microsoft SupportOfficial help for Windows, including the Get Help app built into Windows.
- Your PC maker's support siteFor hardware faults, drivers and warranty repairs. Find your model in Settings then
System then , then type the maker's web address yourself.About - A local repair shop you can visitFor hardware faults such as a failing drive, screen or battery.
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:
- Microsoft Support: Troubleshooting Windows unexpected restarts and stop code errors
- Microsoft Learn: Stop code error or bug check troubleshooting
- Microsoft Learn: Bug check code reference
Last reviewed . Spotted a step that doesn't match your screen? Tell us and we'll check it.