Windows Recovery & Diagnostics

Windows BSOD, Event Viewer, SFC/DISM & Boot Repair

When Windows hits a Blue Screen of Death (BSOD), loops on Automatic Repair, or fails updates, avoid random registry tweaks. Follow the Windows Boot & Repair Pipeline from WinRE and BCD recovery down to DISM, SFC, and Event Viewer forensics.

๐ŸชŸ Windows 10 / 11 / Server๐ŸŸข Beginner-Friendly๐Ÿ“… Updated: 2026
Windows Boot & Repair Pipeline (WinRE → BCD → DISM/SFC → Event Logs)
STAGE 1: WinRE Recovery Environment Shift+Restart or Install USB Troubleshoot > CMD STAGE 2: BCD Boot Configuration Fix MBR, boot sector & BCD bootrec / bcdedit STAGE 3: DISM / SFC OS Image & File Repair Heal WinSxS store, then OS DISM → sfc /scannow STAGE 4: EVENT LOGS Root-Cause Forensics Event IDs & Minidump (.dmp) eventvwr.msc / Minidump

1 Image & System File Repair (Admin CMD)

Run these commands in an Elevated Command Prompt (Right-click Start → Terminal (Admin)). Order mattersโ€”repair the Windows Component Store first so SFC has clean backup files to copy from.

DISM /Online /Cleanup-Image /RestoreHealth Step 1: Repair Component Store
Repair the underlying Windows Component Store (WinSxS)
Connects to Windows Update to download healthy system files if your local Windows image is corrupted.
๐Ÿ’ก Trick: Check if corruption exists first with DISM /Online /Cleanup-Image /ScanHealth.
sfc /scannow Step 2: System File Checker
Scan and replace corrupted or missing protected Windows files
Verifies hashes of all core OS DLLs and EXEs against the healthy WinSxS store repaired by DISM.
๐Ÿ’ก Trick: If SFC says "found corrupt files and was unable to fix some", reboot to Safe Mode and re-run.
chkdsk C: /f /r Step 3: Disk & Bad Sector Repair
Fix NTFS filesystem errors (/f) and recover bad sectors (/r)
On the OS drive C:, Windows will ask to schedule the scan on the next rebootโ€”press Y and restart.
๐Ÿ’ก Trick: On modern SSDs, chkdsk C: /f is usually enough and finishes in minutes instead of hours.
๐Ÿง  Order Memory Trick โ€” "Do Something Clean": Always run DISM first (heals the local Windows image), SFC second (repairs OS files using that healthy image), and CHKDSK if you suspect storage or NTFS corruption.

2 Critical Event Viewer IDs Table

Open Event Viewer quickly with Win+R → eventvwr.msc. Filter Windows Logs → System or Security by these high-signal Event IDs.

Event ID Log & Source What It Means & What to Check
41 System • Kernel-Power Unexpected shutdown or power loss. Windows rebooted without a clean shutdown (BSOD, PSU failure, thermal trip, or hard power button hold).
1001 System • BugCheck BSOD crash details. Records the exact Stop Code (e.g., 0x0000001A) and the path to the saved .dmp memory dump file.
4624 / 4625 Security • Microsoft-Windows-Security-Auditing Successful (4624) vs. Failed (4625) Logon. Check Logon Type (2=Interactive, 3=Network, 10=RDP) and Source Network Address for brute-force attempts.
4740 Security • Account Lockout User account was locked out. Check the Caller Computer Name field to find which device, mapped drive, or cached service credential is spamming bad passwords.
7036 / 7000 System • Service Control Manager Service state change / startup failure. 7036 logs a service entering running/stopped state; 7000 means a service failed to start (often bad path, permissions, or timeout).
powershell -Command "Get-WinEvent -FilterHashtable @{LogName='System'; Id=41,1001,7000} -MaxEvents 15 | Format-Table TimeCreated,Id,Message -Wrap"

3 Boot & BCD Repair in WinRE

When Windows won't start ("Bootmgr is missing" or "Your PC needs to be repaired"), boot into WinRE (Hold Shift + Restart, or boot from a Windows USB → Repair your computer → Troubleshoot → Command Prompt).

bootrec /fixmbr WinRE Command Prompt
Write a fresh Windows Master Boot Record (MBR)
Repairs a corrupted MBR on Legacy/BIOS disks without overwriting your partition table.
๐Ÿ’ก Trick: Modern UEFI/GPT PCs don't use MBRโ€”use bcdedit or bcdboot on UEFI systems.
bootrec /fixboot WinRE Command Prompt
Write a new boot sector to the system partition
Fixes a damaged or overwritten Windows boot sector (common after dual-boot installs).
๐Ÿ’ก Trick: If UEFI returns "Access is denied", assign a letter to the EFI partition in diskpart and run bcdboot C:\Windows /s S: /f UEFI.
bootrec /rebuildbcd WinRE Command Prompt
Scan all disks for Windows installations and rebuild the BCD store
Detects C:\Windows and asks "Add installation to boot list?"โ€”press Y.
๐Ÿ’ก Trick: Run bootrec /scanos first if you just want to verify Windows is detected.
bcdedit /enum Admin CMD / WinRE
Inspect the Boot Configuration Data (BCD) entries
Verify that Windows Boot Manager and Windows Boot Loader point to the correct drive letter/partition (usually partition=C:).
๐Ÿ’ก Trick: Back up the BCD before editing with bcdedit /export C:\bcd-backup.

4 BSOD Stop Codes & Minidumps

Every Blue Screen writes a small crash snapshot to C:\Windows\Minidump\. Open those .dmp files in WinDbg (Microsoft Store) and run !analyze -v to see the exact faulting driver (.sys).

dir C:\Windows\Minidump\ Crash Dump Location
List saved BSOD minidump files by timestamp
If the folder is empty, enable small memory dumps under sysdm.cpl → Advanced → Startup and Recovery.
๐Ÿ’ก Trick: Never delete the newest .dmp before checking which .sys driver caused the crash.
BSOD Stop Code Common Root Cause First Fix to Try
CRITICAL_PROCESS_DIED Core Windows process (csrss.exe, wininit.exe) crashed or was killed; corrupt OS files or failing SSD. Boot WinRE → run DISM /RestoreHealth, sfc /scannow, and check SMART health.
MEMORY_MANAGEMENT Faulty RAM stick, unstable XMP/DOCP overclock, or corrupted pagefile/driver memory pool. Run mdsched.exe (Windows Memory Diagnostic) or MemTest86; disable RAM overclock.
INACCESSIBLE_BOOT_DEVICE Storage controller mode changed (AHCI vs RAID/VMD), missing NVMe driver, or corrupt BCD. Check BIOS SATA/NVMe mode, run chkdsk C: /f, and verify bcdedit /enum.

5 The Danger Zone (What NOT To Do)

โš ๏ธ 3 Mistakes That Turn a Simple Crash Into a Wipe
1. Running sfc /scannow before DISM when the component store is corrupt

sfc pulls replacement files from the local C:\Windows\WinSxS store. If that store is damaged, SFC fails repeatedly or leaves broken files behind.

โœ… Safe habit: Always run DISM /Online /Cleanup-Image /RestoreHealth first, then sfc /scannow.
2. Deleting C:\Boot or the EFI System Partition (ESP)

Wiping the hidden 100MBโ€“500MB EFI partition or C:\Boot deletes the Windows Boot Manager and BCD, making the PC unbootable.

โœ… Safe habit: Never format small FAT32/System Reserved partitions in Disk Management or diskpart; use bcdedit /export before boot edits.
3. Hard-powering off during chkdsk /f /r or Windows Update

Interrupting active NTFS metadata repairs or servicing stack updates can leave the registry hives or boot files half-written.

โœ… Safe habit: Let chkdsk finish (even if it looks paused at 10โ€“20%), and check Event Viewer ID 41 / 1001 after boot.