Windows boot troubleshooting: WinRE, BCD repair and crash dumps

A server that won’t start, or one that blue-screens and restarts, is about the most stressful ticket you’ll ever pick up. Windows boot troubleshooting gets a lot calmer once you know the boot chain and have a crash dump to read.

You’ll read the boot configuration, set up crash dumps, trigger a safe test crash on SRV01 and read the dump in WinDbg. After that you’ll break the boot configuration on purpose and repair it from the Windows Recovery Environment.

TimeYou needBy the end you can
About 90 minutesSRV01 (take a snapshot first), the Windows Server 2025 ISO, and a Windows laptop or VM for WinDbgRepair a broken boot configuration and find the driver behind a blue screen

What it is, in one line

Windows boot troubleshooting means finding which link in the start-up chain (firmware, boot manager, loader, kernel, drivers, services) is failing, and then using the recovery tools and crash dumps to fix it.

In Simple Words

In Simple Words

Starting a server is a bit like a relay race. The firmware passes the baton to the boot manager, the boot manager passes it to the Windows loader, the loader passes it to the kernel and drivers, and they pass it on to the services. When the race stops, the question is who was holding the baton when it fell: a message straight after power-on points to one of the early runners, and a blue screen with a code points to a later one. A crash dump is like a photo taken the moment the baton hit the ground, showing you who dropped it.

Engineer's View

Engineer’s View

Boot chain (UEFI): the firmware loads bootmgfw.efi from the EFI System Partition, and the boot manager reads the BCD store and runs winload.efi. That loads the kernel, the HAL, the SYSTEM registry hive and the boot-start drivers, and then smss, wininit and the Service Control Manager bring up everything else.

Typical failures: “no boot device” (firmware or disk), BCD errors like 0xc000000f (boot manager), INACCESSIBLE_BOOT_DEVICE 0x7B (storage driver or disk), a bug check from a faulty driver, or a hang at “Please wait” (usually a service).

Tools: the Windows Recovery Environment (WinRE) from the ISO or Advanced startup, bcdedit to read and change the BCD, bcdboot to rebuild boot files, Safe Mode (bcdedit /set {current} safeboot minimal), boot logging to ntbtlog.txt, and offline dism /image: and reg load for a system that won’t start.

Crash dumps: these are configured under HKLM\SYSTEM\CurrentControlSet\Control\CrashControl, where CrashDumpEnabled is 1 (complete), 2 (kernel), 3 (small) or 7 (automatic, the default). The dump is written through the page file to %SystemRoot%\MEMORY.DMP, so the page file has to be big enough.

After the restart, event 1001 records the bug check code.

WinDbg: open the dump, load the symbols and run !analyze -v, and you get the bug check, the faulting module and the stack.

How it works, step by step

The boot chain, and what fails at each stage:

Windows boot troubleshooting chain: firmware, boot manager, loader and services

The first thing to ask is always how far it got, so write down the last thing you saw on the console. On a VM that’s easy, since the console is always there.

Early failures, before the Windows logo, are firmware, disk or BCD problems and you fix them from WinRE. Blue screens during boot are usually drivers, and hangs after the logo tend to be services or Group Policy.

When a running server crashes, the dump is your evidence. Set dumps up before you need them, because there’s no way to collect one after the event.

Symptom, likely cause and the tool to use:

Windows boot troubleshooting symptoms: BCD errors, blue screens and hangs

You’ll do the whole lab on SRV01:

  • Read the firmware type and the BCD entry.
  • Set up kernel crash dumps and check the page file.
  • Cause a test crash with Microsoft’s NotMyFault tool.
  • Read the dump with WinDbg.
  • Turn on boot logging and read ntbtlog.txt.

Hands-on lab: crash dumps and the boot chain

Before you run any command, double-check it

Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.

Take a VirtualBox snapshot of SRV01 called “Before boot lab”, then work on SRV01 as SAATLAB\adm.rahul in PowerShell as administrator.

1Read the firmware type and boot entry

On SRV01:

$env:firmware_type
bcdedit /enum '{current}'

You’ll see something like this:

UEFI

Windows Boot Loader
-------------------
identifier              {current}
device                  partition=C:
path                    \Windows\system32\winload.efi
description             Windows Server
locale                  en-US
recoverysequence        {6b3a2f41-91c4-11ef-9a2e-080027a1b2c3}
displaymessageoverride  Recovery
recoveryenabled         Yes
osdevice                partition=C:
systemroot              \Windows
resumeobject            {6b3a2f40-91c4-11ef-9a2e-080027a1b2c3}
nx                      OptOut

UEFI with winload.efi means the boot files live on the EFI System Partition. If your VM shows Legacy and winload.exe, it’s using BIOS boot, and the steps still work with a different partition. Before you change anything, save a copy of the BCD:

New-Item C:\Lab -ItemType Directory -Force | Out-Null
bcdedit /export C:\Lab\bcd-backup

You should see this:

The operation completed successfully.

✅ Checkpoint: You know the firmware type and the boot loader path, and C:\Lab\bcd-backup exists.

2Set up kernel crash dumps

Check the current settings and the page file first:

Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl |
    Select-Object CrashDumpEnabled, DumpFile, MinidumpDir, AutoReboot
(Get-CimInstance Win32_ComputerSystem).AutomaticManagedPagefile

You’ll see something like this:

CrashDumpEnabled DumpFile                MinidumpDir           AutoReboot
---------------- --------                -----------           ----------
               7 %SystemRoot%\MEMORY.DMP %SystemRoot%\Minidump          1

True

7 means “automatic memory dump”, which is a kernel dump with a page file that Windows sizes for you. Switch it to a plain kernel dump (2) so you know exactly what you’re going to get:

Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl -Name CrashDumpEnabled -Value 2

✅ Checkpoint: CrashDumpEnabled is 2, the dump goes to MEMORY.DMP, and the page file is system managed.

3Cause a test crash with NotMyFault

Download Microsoft’s NotMyFault tool and use the test driver that comes with it to crash SRV01:

Invoke-WebRequest https://download.sysinternals.com/files/NotMyFault.zip -OutFile C:\Lab\NotMyFault.zip
Expand-Archive C:\Lab\NotMyFault.zip -DestinationPath C:\Lab\NotMyFault -Force
C:\Lab\NotMyFault\notmyfaultc64.exe crash 0x01

SRV01 blue-screens, writes the dump and restarts. Crash type 0x01 is a “high IRQL fault” inside NotMyFault’s own test driver, myfault.sys. [Add your screenshot here]

Once it’s back up, read the bug check event:

Get-WinEvent -FilterHashtable @{ LogName = 'System'; Id = 1001; ProviderName = 'Microsoft-Windows-WER-SystemErrorReporting' } -MaxEvents 1 |
    Format-List TimeCreated, Message
Get-Item C:\Windows\MEMORY.DMP | Select-Object Name, @{ n = 'MB'; e = { [math]::Round($_.Length / 1MB) } }

You’ll see something like this:

TimeCreated : 20/10/2026 10:42:10
Message     : The computer has rebooted from a bugcheck.  The bugcheck was: 0x000000d1 (0xffffd70c4e3a1010,
              0x0000000000000002, 0x0000000000000000, 0xfffff8064a2112d0). A dump was saved in:
              C:\Windows\MEMORY.DMP. Report Id: 3f6c2a10-9a1b-4c8e-b7d2-5e0f1a2b3c4d.

Name       MB
----       --
MEMORY.DMP 612

✅ Checkpoint: Event 1001 shows bug check 0xD1 and C:\Windows\MEMORY.DMP exists.

4Read the dump with WinDbg

Copy MEMORY.DMP to a Windows machine, install WinDbg and open the dump there:

winget install Microsoft.WinDbg
# In WinDbg: File > Open dump file > MEMORY.DMP, then type:
.symfix
.reload
!analyze -v

You’ll see something like this (cut down):

DRIVER_IRQL_NOT_LESS_OR_EQUAL (d1)
An attempt was made to access a pageable (or completely invalid) address at an
interrupt request level (IRQL) that is too high.

PROCESS_NAME:  notmyfaultc64.exe
SYMBOL_NAME:  myfault+12d0
MODULE_NAME: myfault
IMAGE_NAME:  myfault.sys

At work, the two lines you care about are IMAGE_NAME (the driver) and the bug check name, and from there you check that driver’s version, vendor updates and recent changes. Symbols come from Microsoft’s public symbol server, so the first load takes a minute.

✅ Checkpoint: !analyze -v names DRIVER_IRQL_NOT_LESS_OR_EQUAL and myfault.sys.

Windows boot troubleshooting lab: WinDbg analysis names the faulting driver
Windows boot troubleshooting: WinDbg names the bug check and the faulting driver

5Turn on boot logging

On SRV01, turn on boot logging, restart and then read the log:

bcdedit /set '{current}' bootlog yes
Restart-Computer
# after the restart:
Get-Content C:\Windows\ntbtlog.txt -Encoding Unicode | Select-Object -First 4
bcdedit /deletevalue '{current}' bootlog

You’ll see something like this:

Microsoft (R) Windows (R) Version 10.0 (Build 26100.NNNN)
10 20 2026 10:55:03.500
BOOTLOG_LOADED \SystemRoot\system32\ntoskrnl.exe
BOOTLOG_LOADED \SystemRoot\system32\hal.dll

ntbtlog.txt lists every driver that loaded (or didn’t) during boot, so when a server stops at the same point each time, the last driver in the list is a strong lead. Switch logging off again when you’ve finished.

✅ Checkpoint: ntbtlog.txt lists loaded drivers, and boot logging is off again.

Break It, Then Fix It

Check that your “Before boot lab” snapshot is there, because if anything goes wrong you can always go back to it.

1Break it: remove the boot entry

On SRV01, delete the Windows boot entry (you backed it up in lab step 1) and restart:

bcdedit /delete '{current}'
Restart-Computer -Force

Windows won’t start on the VM, and the console shows something like this:

Windows Boot Manager

Windows failed to start. A recent hardware or software change might be the cause.

File: \EFI\Microsoft\Boot\BCD
Status: 0xc000000f
Info: The Boot Configuration Data for your PC is missing or contains errors.
Windows boot troubleshooting break lab: BCD missing, status 0xc000000f
With no Windows entry in the BCD, the boot manager stops with 0xc000000f

The boot manager runs but finds no Windows entry to load. What the screen looks like depends on your firmware; [Add your screenshot here].

To fix it, boot from the Windows Server 2025 ISO and pick Repair your computer, Troubleshoot, Command Prompt. Work out which drive is Windows (letters change in WinRE) and rebuild the boot files:

diskpart
list volume
exit
dir D:\Windows
bcdboot D:\Windows
wpeutil reboot

You’ll see something like this:

Boot files successfully created.

bcdboot copies fresh boot files to the system partition it finds for the current firmware type and creates a new BCD with a Windows entry. Eject the ISO and SRV01 starts normally. If you’d prefer to put back the exact old store, bcdedit /import D:\Lab\bcd-backup does that.

✅ Checkpoint: SRV01 failed with 0xc000000f, then booted normally after bcdboot from WinRE.

2Break it: crash with no room for a dump

On SRV01, switch off the page file, restart, and then trigger the test crash again:

$cs = Get-CimInstance Win32_ComputerSystem
$cs | Set-CimInstance -Property @{ AutomaticManagedPagefile = $false }
Get-CimInstance Win32_PageFileSetting | Remove-CimInstance
Remove-Item C:\Windows\MEMORY.DMP -ErrorAction SilentlyContinue
Restart-Computer
# after the restart:
C:\Lab\NotMyFault\notmyfaultc64.exe crash 0x01

Once it restarts, look for the dump and the dump events:

Test-Path C:\Windows\MEMORY.DMP
Get-WinEvent -FilterHashtable @{ LogName = 'System'; Id = 161, 1001 } -MaxEvents 2 |
    Select-Object Id, @{ n = 'Message'; e = { ($_.Message -split "\r?\n")[0] } } | Format-Table -Wrap

You’ll see something like this:

False

  Id Message
  -- -------
1001 The computer has rebooted from a bugcheck.  The bugcheck was: 0x000000d1 (...). A dump was not saved.
 161 Dump file creation failed due to error during dump creation.

The crash happened, but there’s nothing to analyse. Windows writes the dump through the page file on the system drive, so with no page file there’s nowhere to put it, and on a real server that means the next crash teaches you nothing.

To fix it, turn system-managed paging back on and restart:

Get-CimInstance Win32_ComputerSystem | Set-CimInstance -Property @{ AutomaticManagedPagefile = $true }
Restart-Computer

Run the crash again if you want to check, and MEMORY.DMP is back.

✅ Checkpoint: With no page file the dump was not saved; after enabling system-managed paging, dumps work again.

This happened at work

The reboot loop nobody could read

It was right after a storage driver update. A database server went into a restart loop, flashing a blue screen for a split second and restarting, again and again, and because automatic restart was on, nobody could read the stop code. The on-call engineer opened the VM console, went into Advanced startup, then Startup Settings, and picked Disable automatic restart after failure, and at last she saw INACCESSIBLE_BOOT_DEVICE (0x7B): the new driver couldn’t talk to the disk controller. From WinRE she listed the third-party drivers with dism /image:D:\ /get-drivers, removed the new storage driver with dism /image:D:\ /remove-driver, and the server came up on the old one.

The fix: driver updates now go to a single server first, with a snapshot or backup, and the team keeps a WinRE-ready ISO attached in the hypervisor library.

The lesson: if you can’t read the stop code, turn off automatic restart, because that code tells you which link in the chain broke.

Common mistakes and troubleshooting

MistakeWhat happensWhat to do instead
No crash dump set upThe next crash leaves no evidenceKernel or automatic dump, with a big enough page file
Page file moved off C: or removedDumps fail (event 161)Keep a page file on the system drive, or use a dedicated dump file
Editing the BCD without a backupHard to undo mistakesbcdedit /export first
Reinstalling Windows too quicklyHours lost and settings goneTry WinRE: bcdboot, Safe Mode, offline DISM
Ignoring the stop codeGuessing at the causeDisable automatic restart and read the code
Reading only the bug check nameMissing the driverUse !analyze -v and check IMAGE_NAME
Leaving boot logging or Safe Mode onSlow or limited boots laterRemove bootlog and safeboot values when done
Updating drivers on all servers at onceMany servers down togetherPilot one server with a snapshot or backup

Interview questions

Click a question to open it. Each one is worded the way an interviewer would ask it, and underneath you’ll see why they ask and one way you could answer in your own words.

Fresher level

1. A server shows a blue screen and restarts. What do you write down first?

Why they ask this: They want to see you collect evidence before you start changing things.

How you might answer: I write down the stop code, any driver name on the screen and the time, and ask what changed recently, like updates or new drivers. After that I check event 1001 in the System log and look for the dump file.

2. Can you explain in simple words what WinRE is and how you get into it?

Why they ask this: They’re checking you know the main recovery tool for a server that won’t boot.

How you might answer: WinRE is the Windows Recovery Environment, a small recovery system that’s separate from normal Windows, and I get to it from the install ISO or from Advanced startup. In there I can run Startup Repair, open a command prompt, use System Restore or run offline tools.

3. After a crash, where would you look for the dump file?

Why they ask this: They want to know the basic locations, since you need the dump to find the cause.

How you might answer: By default a kernel or complete dump is saved as %SystemRoot%\MEMORY.DMP, and small dumps go into the %SystemRoot%\Minidump folder. If neither is there, I check the dump settings, because the dump may never have been written.

2–5 years experience

4. A server won’t start and says the BCD is missing. Walk me through the fix.

Why they ask this: They want to see you can repair boot files calmly with the right commands.

How you might answer: I boot into WinRE and first find the drive letter of the Windows volume, since it’s often not C: there. Then I run bcdboot X:\Windows, adding /s and /f if I need a particular partition or firmware type. If we’ve got a BCD backup I can import that instead, and then I restart and check it boots.

5. You have a crash dump from a server. How would you find out which driver caused the crash?

Why they ask this: They want to know you can read a dump and not only collect it.

How you might answer: I open the dump in WinDbg, load the symbols and run !analyze -v, then read IMAGE_NAME, MODULE_NAME and the stack. Once I know the driver, I check its version and whether the vendor has an update out.

6. A server crashed, but there’s no dump file at all. Why might that be?

Why they ask this: They want to see you know what Windows needs before it can write a dump.

How you might answer: The usual reasons are that there’s no page file on the system drive, or it’s too small. Dumps might also be switched off, or there wasn’t enough free disk space, and if the crash came very early in boot, Windows may not have been able to write a dump yet.

Senior level

7. After a driver update, a server fails to boot with stop code 0x7B. What would you do?

Why they ask this: They want to see you can repair a server offline when it can’t start Windows at all.

How you might answer: 0x7B points to a storage driver problem, so I’d boot into WinRE and use dism /image to list the drivers and remove the new storage driver. Another option is to load the offline SYSTEM hive with reg load and set the old driver’s start value back, and then boot the server.

8. You look after many servers. How would you make sure crash analysis is possible when one fails?

Why they ask this: They want to see you prepare ahead, so the evidence is there when a crash happens.

How you might answer: I’d push standard dump settings through GPO and size the page files so dumps can be written, and have a central place to collect dumps with symbol access ready. Then I’d alert on event 1001, so we hear about every crash and can look at it quickly.

9. When would you choose a complete memory dump over a kernel dump?

Why they ask this: They want to know you understand the trade-off between more detail and more disk space.

How you might answer: I’d go for a complete dump when user-mode memory matters, say a hang that involves an application, because a kernel dump leaves that memory out. The cost is a page file at least as big as the RAM, and a lot more disk space.

Quick quiz

Q1. What does status 0xc000000f with a BCD message mean?

  1. A bad driver
  2. The boot configuration is missing or damaged
  3. The disk is full
Show answer

B — Rebuild with bcdboot from WinRE.

Q2. Which tool rebuilds boot files from WinRE?

  1. bcdboot
  2. gpupdate
  3. sfc /scannow
Show answer

A — For example bcdboot D:\Windows.

Q3. Which event records the bug check code after a restart?

  1. 1001
  2. 4625
  3. 7036
Show answer

A — From WER-SystemErrorReporting.

Q4. Why did the dump fail in Break It step 2?

  1. WinDbg was missing
  2. There was no page file
  3. The CPU was busy
Show answer

B — Dumps go through the page file.

Q5. What helped the engineer in the work story read the stop code?

  1. Safe Mode
  2. Disabling automatic restart
  3. A new disk
Show answer

B — Then she saw 0x7B.

Quick recap

  • Windows boot troubleshooting follows the chain: firmware, boot manager, loader, kernel and drivers, then services.
  • Back up the BCD with bcdedit /export, and rebuild it with bcdboot from WinRE when it breaks.
  • Set up kernel dumps, and keep a page file on the system drive.
  • Event 1001 gives the bug check; WinDbg !analyze -v gives the driver.
  • When a driver blocks start-up, boot logging, Safe Mode and offline DISM are the tools to reach for.

Next lesson

Lesson 49: Windows Update failures → Next you’ll fix updates that won’t install by reading the Windows Update and CBS logs, repairing the component store with DISM and sfc, and resetting the update components.

Further reading: Windows boot troubleshooting

Want to go deeper into Windows boot troubleshooting? Microsoft’s bcdboot command reference explains every option, and the NotMyFault page describes each test crash type. You can also see the full plan for this course on the Windows Server Administration course page.

Scroll to Top

This website uses cookies

We use a few cookies to keep this site working. If you allow it, we also use Google Analytics to count visits so we can improve our lessons. You can accept all, deny the optional ones, or choose what to allow.