Use this when Windows fails to boot and you need to find the failing stage and repair it from WinRE.
Boot Troubleshooting
Troubleshoot Windows boot by noting where it stops and the error code, then use WinRE: Startup Repair, bootrec, bcdboot to rebuild boot files, chkdsk, and the boot log or safe mode to find a bad driver.
1. Identify the stage and error code.
2. BSOD → stop code and dump.
3. Boot loop after update → uninstall update in WinRE.
4. BCD/ESP errors → bcdboot.
5. Disk/filesystem → chkdsk from WinRE.
firmware → boot manager → BCD → winload → kernel → drivers → services
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Known-good, broken and when it is fixed Verify boundary
Known-good means firmware selects the intended Windows boot target, Boot Manager resolves the intended BCD entry, the loader reaches the expected Windows installation and the original machine proceeds through logon without a new boot error. Broken evidence is an absent firmware target, unresolved BCD device/path, loader error or repeatable crash after handoff. Read back the selected BCD entry and boot device after any change. The limit of what it shows is important: a syntactically valid BCD store or successful Startup Repair does not show the OS, storage stack or application workload is healthy; closure is the original boot-to-logon path.
Step 2 Common mistakes Narrow the fault
- Rebuilding BCD before checking disk and partition health.
Step 3 Native failure isolation and next-check logic Narrow the fault
Branch first on the last visible stage. If firmware cannot find a Windows boot option, inspect device discovery and EFI/BIOS boot order before editing BCD. If Boot Manager appears but reports a missing loader or device, inspect the selected BCD entry and whether its partition/device is reachable. If winload starts and the system then crashes or loops, move to boot-critical drivers, kernel crash evidence or Safe Mode rather than rebuilding the boot store. If WinRE can see the volume but normal boot cannot, compare storage/filter/BitLocker state. Apply one bounded repair and retest the same boot path; do not stack startup repair, BCD rebuild and filesystem repair without knowing which boundary changed.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Write down the error or stop code before trying fixes.
- Start with WinRE tools before reinstalling.
- Safe mode tells you whether a driver or service is the cause.
bcdedit /enum all— BCD entriesGet-WinEvent -FilterHashtable @{LogName='System';Id=41,6008,1001}— unexpected shutdowns and bugchecksreagentc /info— WinRE statusConfirm-SecureBootUEFI— Secure Boot statemountvol /s / Get-Partition— EFI System Partition
ReferenceHow it works2 sections · depth on demand
How it works
How it works: Windows boot proceeds through firmware/UEFI and boot device discovery, Windows Boot Manager/BCD selection, winload, kernel/HAL initialization, boot-start drivers, Session Manager and service/logon initialization.
How it works
Windows boot troubleshooting follows a strict chain of components: firmware selects a boot device, the EFI System Partition or active system partition exposes Windows Boot Manager, BCD selects the loader and target, winload initializes the kernel/boot-critical drivers, and the kernel hands off to services and logon. A machine that reaches the Windows logo has crossed different boundaries than one that never loads Boot Manager. BCD entries are identifiers and device references, not the firmware boot order itself. BitLocker, storage visibility, Secure Boot and recent driver changes can block adjacent stages. Preserve the exact stop point, boot entry identifier and error text before repairing BCD or replacing files.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Get information about a slow or failing start
| Tool | Use |
|---|---|
| Boot logging | bcdedit /set {current} bootlog yes → C:\Windows\ntbtlog.txt lists every driver loaded or not loaded |
| Safe Mode | bcdedit /set {current} safeboot minimal (or network) — minimal drivers and services |
| Clean boot | msconfig → hide Microsoft services → disable others; isolate third-party services |
| Diagnostic startup event logs | Microsoft-Windows-Diagnostics-Performance/Operational events 100 (boot duration), 101–110 (slow components) |
| Boot trace | wpr -start GeneralProfile -start CPU -onoffscenario boot (WPR boot tracing) then WPA |
Microsoft's startup troubleshooting guide covers the boot phases and repair options used when boot fails outright; the tools above help when it starts but slowly or inconsistently.
Reading boot performance events
PS C:\> Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-Diagnostics-Performance/Operational'; Id=100} -MaxEvents 5 |
ForEach-Object { $x=[xml]$_.ToXml(); [pscustomobject]@{Time=$_.TimeCreated; BootMs=($x.Event.EventData.Data | ? Name -eq 'BootTime').'#text'; MainPathMs=($x.Event.EventData.Data | ? Name -eq 'MainPathBootTime').'#text'} }
Events 101 (application), 102 (driver), 103 (service) name the components that slowed startup in that boot.
Typical causes of slow startup
| Cause | Clue |
|---|---|
| Waiting for network at boot (GPO "Always wait for the network") | Long Group Policy processing in GP operational log |
| Startup scripts with network paths | GPO scripts, logon scripts timing out |
| Drivers retrying hardware | Event 102 naming a driver; device errors |
| Services with long start timeouts | Event 7011/7009 in System log |
| Disk nearly full or slow (HDD) | Disk latency; Superfetch/SysMain activity |
| Windows Update finalising | "Working on updates" — check update history |
Clean up after diagnosis
Remove safeboot and bootlog values (bcdedit /deletevalue {current} safeboot) and re-enable services disabled during clean boot — forgotten diagnostic settings cause the next incident.
*The event 100 query illustrates extracting boot-duration fields; no measured startup times are supplied.*
Method
Boot troubleshooting narrows down where startup fails: firmware/POST, boot manager, OS loader, kernel/driver initialisation, or services and logon.
| Stage | Symptom | Tool |
|---|---|---|
| Firmware | No boot device, Secure Boot violation | UEFI settings, boot order |
| Boot manager/BCD | "Boot configuration data is missing" | WinRE, bcdedit, bcdboot |
| OS loader / kernel | BSOD during boot (INACCESSIBLE_BOOT_DEVICE) | Safe Mode, driver rollback, storage controller mode |
| Services/logon | Hangs at "Please wait", black screen | Boot logging, Safe Mode, clean boot |
bcdedit /enum all
bcdboot C:\Windows /s S: /f UEFI
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
bcdedit /set {default} bootlog yes :: creates C:\Windows\ntbtlog.txt
Start with what changed (update, driver, hardware, BIOS setting) — most boot failures follow a change.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Boot Process → Boot Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/boot-options-in-windows · confidence 94%