How to Fix Blue Screen with Command Prompt in Windows 10

0

The Blue Screen of Death (BSOD) is one of the most frustrating errors Windows users can experience. It occurs when Windows encounters a critical system error and cannot recover, forcing the system to shut down. BSODs are usually caused by hardware failures, corrupt system files, driver conflicts, or boot-related issues.

Fortunately, Command Prompt (CMD) provides several powerful tools to diagnose and fix BSOD errors. This guide will walk you through a step-by-step process to repair BSOD using CMD commands, ensuring your system is restored without needing a complete reinstallation.

Common BSOD Error Codes and What They Mean

Before jumping into fixes, it’s helpful to understand common BSOD error codes:

BSOD Error CodeMeaning
SYSTEM_SERVICE_EXCEPTIONFaulty drivers or corrupted system files
MEMORY_MANAGEMENTRAM-related issues or page file errors
CRITICAL_PROCESS_DIEDA crucial system process unexpectedly stopped
INACCESSIBLE_BOOT_DEVICECorrupt boot files or drive failure
DRIVER_IRQL_NOT_LESS_OR_EQUALConflicting or outdated drivers

Once you identify your error, follow the fixes below to resolve the issue using Command Prompt.

Preparing Your System Before Running Fixes

Before proceeding, follow these important steps:

  1. Boot into Windows Recovery Mode:
  • Turn off your PC and turn it back on.
  • When the Windows logo appears, press and hold Shift + F8 to enter recovery mode.
  • Select Advanced Options > Command Prompt.
  1. Back Up Important Files (if Windows is accessible).

Fixing Blue Screen Using Command Prompt (Step-by-Step Methods)

1. Run SFC (System File Checker) to Fix Corrupt Files

Corrupt system files often trigger BSOD errors. Run the SFC command to fix them:

  1. Open Command Prompt (Admin).
  2. Type:
   sfc /scannow
  1. Press Enter and wait for the scan to complete.
  2. Restart your PC and check if the BSOD error persists.

2. Run CHKDSK to Fix Hard Drive Errors

If your hard drive has bad sectors, CHKDSK can repair them:

  1. Open Command Prompt in recovery mode.
  2. Type:
   chkdsk /f /r C:
  1. Press Enter (Replace C: with your system drive letter).
  2. Restart your PC after the scan completes.

3. Use DISM to Repair Windows System Image

The DISM tool fixes deeper Windows corruption:

  1. Open Command Prompt as Administrator.
  2. Type the following and press Enter:
   DISM /Online /Cleanup-Image /RestoreHealth
  1. Wait for the process to complete, then restart your PC.

4. Fix Boot Issues Using Bootrec Commands

If your PC won’t boot or shows INACCESSIBLE_BOOT_DEVICE, use these 5 Bootrec methods:

MethodCommand to UseWhen to Use It
Fix Master Boot Record (MBR)bootrec /fixmbrCorrupted MBR preventing boot
Repair Boot Sectorbootrec /fixbootInvalid boot sector after update
Scan for Windows Installationsbootrec /scanosMissing Windows installation
Rebuild Boot Configuration Data (BCD)bootrec /rebuildbcdNo bootable OS found
Reset Boot Orderbcdedit /set {default} bootstatuspolicy ignoreallfailuresInfinite reboot loop

Steps to Run Bootrec Commands

  1. Boot into Advanced Startup > Command Prompt.
  2. Enter each command from the table one by one and press Enter.
  3. Restart your PC and check if the BSOD is fixed.

5. Uninstall Recent Windows Updates That Cause BSOD

Windows updates sometimes introduce compatibility issues.

To remove the most recent update:

  1. Open Command Prompt and type:
   wusa /uninstall /kb:[update-number]
  1. Replace [update-number] with the latest update code from Windows Update History.
  2. Restart your PC.

Note: Only uninstall updates if they are confirmed to cause BSOD. Ensure you reinstall security patches later.

6. Fix Driver Issues Using Command Prompt

Faulty drivers can also trigger BSODs. Use CMD to check drivers:

  1. Open Command Prompt.
  2. Run:
   driverquery
  1. Check for outdated or missing drivers.

To roll back a driver, type:

pnputil /enum-drivers
pnputil /delete-driver [driver-name] /uninstall

Replace [driver-name] with the problematic driver.

7. Checking for RAM and Hardware Failures

Faulty RAM can cause MEMORY_MANAGEMENT BSOD errors.

Run a memory diagnostic:

  1. Open CMD and type:
   mdsched.exe
  1. Follow the on-screen instructions.

If errors are found, consider replacing the RAM module.

8. Common BSOD Fixes in One Quick Reference Table

IssueFix Command
Corrupt System Filessfc /scannow
Hard Drive Errorschkdsk /f /r C:
Corrupt Windows ImageDISM /Online /Cleanup-Image /RestoreHealth
Boot Issuesbootrec /fixmbr, bootrec /fixboot
Problematic Updateswusa /uninstall /kb:[update-number]
Faulty Driverspnputil /enum-drivers

9. Preventing Future BSOD Issues (Personal Experience & Expert Tips)

From my personal experience, these tips helped prevent BSODs:

Update drivers regularly to avoid conflicts.
Use Windows Update cautiously – delay major updates for a week.
Monitor PC temperature – Overheating causes hardware failures.
Scan for malware – Certain viruses can trigger BSOD.
Backup your system before making major changes.

10. Pros & Cons of Using Command Prompt for BSOD Fix

ProsCons
Fixes issues without reinstalling WindowsCommands can be complex for beginners
Works even if Windows won’t bootSome issues require multiple attempts
Does not delete personal filesMay not fix severe hardware failures

11. Conclusion – Your PC is Stable Again!

If you’ve followed these steps, your BSOD issue should be resolved. Command Prompt is a powerful tool that can repair system corruption, fix boot errors, and restore stability.

Next Steps:

  • Keep your drivers updated.
  • Avoid installing unverified software.
  • If BSOD persists, consider checking for hardware damage.

If you have encountered a different BSOD error, try applying these fixes and exploring additional troubleshooting methods.

Leave A Reply

Your email address will not be published.