WinRE starts automatically after detecting two consecutive failed attempts to start Windows, and Windows Startup Repair is the tool waiting on that recovery screen. Startup Repair runs from the Windows Recovery Environment (WinRE) and automatically diagnoses and repairs common startup problems such as corrupted system files or boot configuration errors. Every step below follows Microsoft’s own documentation for Windows 11 and Windows 10.
The route in depends on how badly the PC is broken. A machine that still reaches the desktop can restart straight into the repair menu, a machine stuck in a boot loop can be pushed into it, and a machine whose boot files are damaged needs a USB drive. On Windows 11, version 24H2 build 26100.4700 or later, quick machine recovery builds on the foundation of Startup Repair, so newer PCs also get a cloud fix layer on top.
Key Takeaways
- WinRE starts automatically after detecting two consecutive failed attempts to start Windows, and WinRE is preloaded into the Windows 10 and Windows 11 for desktop editions and Windows Server 2016, and later, installations.
- Microsoft numbers the boot phases 1 to 4: PreBoot, Windows Boot Manager, Windows OS Loader and Windows NT OS Kernel.
- Quick machine recovery is available on Windows 11, version 24H2 build 26100.4700 or later.
- CrowdStrike’s update affected 8.5 million Windows devices, the July outage behind quick machine recovery.
- Quick Machine Recovery will be available to the Windows Insider Program community in early 2025, per Microsoft’s announcement.
- Support for Windows 10 has ended on October 14, 2025, but its local recovery tools still run.
What Is Windows Startup Repair?
Startup Repair is a built-in Windows recovery tool that helps fix issues preventing the operating system from starting, according to Microsoft Support’s Startup Repair page. It scans your computer for the problem and then tries to fix it so your computer can start correctly.
Microsoft lists the damage it looks for:
- Missing or damaged system files.
- Corrupted boot configuration data (BCD).
- Damaged master boot record (MBR).
- Incompatible drivers.
- Registry errors.
If it can’t fix the problem, it will provide a detailed report of the issues it found. If you’ve encrypted your device, you’ll need your BitLocker key to complete this task, so find that key before you start.
Does Startup Repair delete your files?
No file deletion appears anywhere in Microsoft’s description of the tool. The issues it tries to repair are missing or damaged system files, corrupted boot configuration data, a damaged master boot record, incompatible drivers and registry errors. When you recover from a drive, you choose either Just remove my files or Fully clean the drive, so read that screen carefully if you move past Startup Repair. A current backup still matters before any repair, and the data recovery basics cover what can be pulled off a drive afterward.
Does Startup Repair still work on Windows 10?
Yes. By default, WinRE is preloaded into the Windows 10 and Windows 11 for desktop editions (Home, Pro, Enterprise, and Education), and Startup Repair ships inside it. Support for Windows 10 has ended on October 14, 2025, which stops new fixes arriving through Windows Update but leaves the local recovery tools in place.
When Does Windows Run Startup Repair Automatically?
Microsoft Learn lists the situations in which Windows opens WinRE without being asked. WinRE starts automatically after detecting two consecutive failed attempts to start Windows, according to Microsoft Learn’s WinRE technical reference, and the other four triggers cover crashes shortly after boot plus two security errors.
| Automatic WinRE trigger | Detail from Microsoft |
|---|---|
| Failed starts | Two consecutive failed attempts to start Windows |
| Unexpected shutdowns | Two consecutive, within two minutes of boot completion |
| System reboots | Two consecutive, within two minutes of boot completion |
| Secure Boot error | Except for issues related to Bootmgr.efi |
| BitLocker error | On touch-only devices |
Source: Microsoft Learn, Windows Recovery Environment technical reference, 2026
The mechanism is a simple flag. When Windows starts, the Windows loader sets a status flag to indicate that the startup process has started, and the next time that the computer starts, the loader detects the flag, assumes that a startup failure occurred, and starts WinRE instead of Windows if that flag was never cleared.
That design has a known blind spot. A false positive may occur if power is lost during startup, so a single power cut can land a healthy PC on the Automatic Repair screen. If the only thing that happened was a power cut, choose to continue to Windows before running any repair.
Which Startup Phase Is Failing?
Microsoft’s startup troubleshooting guide splits the process into PreBoot, Windows Boot Manager, Windows OS Loader and Windows NT OS Kernel. Each phase has its own symptoms, and Startup Repair only reaches some of them, so find the failing phase first.
Phase | Process | BIOS-based PC | UEFI-based PC |
|---|---|---|---|
1 | PreBoot | MBR/PBR (Bootstrap Code) | UEFI Firmware |
2 | Windows Boot Manager | bootmgr | bootmgfw.efi |
3 | Windows OS Loader | winload.exe | winload.efi |
4 | Windows NT OS Kernel | ntoskrnl.exe | ntoskrnl.exe |
Source: Microsoft Learn, Windows startup issues troubleshooting, 2026
Phase 1: PreBoot
The PC’s firmware initiates a power-on self test (POST) and loads firmware settings. To test it, disconnect external peripherals, then check the drive activity light and press NumLock. If the system is stuck at the BIOS phase, there might be a hardware issue, and no software repair will reach it.
Phases 2 and 3: The boot loader
This is Startup Repair territory. If the screen is black except for a blinking cursor, or if you receive one of the following error codes, the startup process is stuck in the Boot Loader phase:
- Boot Configuration Data (BCD) missing or corrupted.
- Boot file or MBR corrupted.
- Operating system Missing.
- Boot sector missing or corrupted.
- Bootmgr missing or corrupted.
- Unable to boot due to system hive missing or corrupted.
Phase 4: The kernel
A Stop error appears after the splash screen (Windows Logo screen), or the PC hangs on the spinning dots. On the Advanced Boot Options screen, try to start the computer in Safe Mode or Safe Mode with Networking before anything else. A kernel-phase crash such as a MEMORY_MANAGEMENT blue screen usually points at a driver or failing RAM, which Startup Repair is not built to diagnose.
How to Open Startup Repair in Windows 11 and 10
Every route into Startup Repair passes through the Windows Recovery Environment. If Windows fails to start correctly multiple times, it will automatically enter Windows RE, according to Microsoft Support, and a working PC can restart into it on demand. The 4 routes below cover the common cases, so pick the one that matches what your screen shows.
Before you start: If you’ve encrypted your device, you’ll need your BitLocker key to complete this task. Look it up from another device first, and keep a spare USB drive nearby in case WinRE does not load.
From Settings, when Windows still loads
- In the Settings app on your Windows device, select System > Recovery; in Windows 10, you can access from Update & Security > Recovery.
- Under Recovery options, next to Advanced startup, select Restart now.
- The PC restarts into the blue Choose an option screen.
From the sign-in screen, with Shift + Restart
From the login screen, click Shutdown, then hold down the Shift key while selecting Restart. The same works from the Start menu when you press and hold the Shift key while you select Power > Restart.
When Windows never reaches the desktop
You can also force Windows to enter automatic repair by interrupting the normal boot process two times:
- Start your device and wait for the Windows logo (or the manufacturer’s logo) to appear.
- As soon as the Windows logo appears, press and hold the power button until the device shuts down.
- Turn the PC on again and repeat the previous step.
- Turn your device on a third time. Windows should display the Automatic Repair screen.
- Select Advanced options.
With a hardware recovery button
Some devices have a dedicated recovery button or a button combination that you can press to boot into Windows RE. Check the manual from your PC maker for the exact key.
How to Run Startup Repair from Advanced Options
Microsoft’s menu path to Startup Repair is 4 selections long. In WinRE, select Troubleshoot > Advanced options > Startup Repair > Restart, per Microsoft Support, and the tool then runs by itself with no settings to choose.
- On Choose an option, select Troubleshoot.
- Select Advanced options, then Startup Repair.
- Pick your Windows installation and enter the BitLocker key if prompted.
- After the device reboots, Startup Repair scans your computer for problems and then tries to fix them.
- After Startup Repair, select Shutdown, then turn on your PC to see if Windows can start properly.
The diagnostics include analyzing startup log files to determine the cause of the issue, so a slow scan is normal. Let it finish; forcing a shutdown mid-scan only adds another failed boot to the count.
How to read the Startup Repair log
The Startup Repair tool generates a log file to help you understand the startup issues and the repairs that were made. Microsoft stores it here:
%windir%\System32\LogFiles\Srt\Srttrail.txtOpen it from the WinRE Command Prompt with Notepad, or from the desktop once Windows starts again. The root-cause line in that file points to the fallback worth trying first.
How to Run Startup Repair from a USB Drive or Installation Media
Microsoft Learn names 3 kinds of boot damage that stop WinRE from loading. Because the behavior that detects startup failures relies on the Windows boot manager and the Windows boot loader, some failures can make WinRE inaccessible, and the three cases are:
- Corrupt disk metadata exists in the master boot record (MBR), partition table, or boot sector of a WinRE partition.
- The boot manager is missing or corrupted.
- The Boot Configuration Data (BCD) store is missing or corrupted.
With a recovery drive made in advance
The Recovery Drive utility creates a USB recovery media that can help you restore your Windows device. Make one on a working PC before you need it:
- From Start, search for Recovery Drive and select it, or use the command recoverydrive.exe.
- Make sure Back up system files to the recovery drive is selected and then select Next.
- Connect the USB drive, select it, then select Next and Create.
The USB drive gets wiped: Use an empty USB drive because this process will erase any data that’s already stored on the drive. The recovery media doesn’t include your personal files, so back those up separately.
Boot the broken PC from that drive and it opens straight into Windows RE, where the Startup Repair path from the previous section applies.
With Windows installation media
A Windows installer USB works as a repair disk too, and our guide to bootable Windows USB installer covers building one. Then:
- Start the system to the installation media for the installed version of Windows.
- On the Install Windows screen, select Next > Repair your computer.
- On the Choose an option screen, select Troubleshoot.
- On the Advanced options screen, select Startup Repair.
What to Do When Startup Repair Can’t Repair Your PC
When Startup Repair reports that it couldn’t repair your PC, the automatic pass is done and the manual tools take over. Microsoft’s troubleshooting guide says to use Windows installation media to start the computer, press Shift+F10 for a command prompt, and work through the fixes below in order.
Repair the boot code and BCD with BOOTREC
Run the 4 BOOTREC switches in this order, restarting between attempts.
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bcdedit /export c:\bcdbackup
attrib c:\boot\bcd -r -s -h
ren c:\boot\bcd bcd.old
bootrec /rebuildbcdBefore rebuildbcd, back up the BCD store with bcdedit /export and rename the existing store to bcd.old. If you receive BCD-related errors, run Bootrec /ScanOS to scan for all the systems that are installed, restart, and move on to rebuildbcd only if the problem remains. The bootloader repair walkthrough goes deeper on each command.
FIXMBR has a limit: Running BOOTREC together with Fixmbr overwrites only the master boot code. If the corruption in the MBR affects the partition table, running Fixmbr might not fix the issue.
Check the disk and system files
The system may be unable to start because of disk corruption, corrupted or missing system files, or pending actions from the installation of an update. Microsoft’s Windows Server guide runs three checks from the WinRE Command Prompt, where D: is the Windows volume that BCDEdit reports:
CHKDSK /f D:
SFC /scannow /offbootdir=D:\ /offwindir=D:\windows
DISM /image:D:\ /cleanup-image /restorehealthBreak an Automatic Repair loop
If the computer repeatedly stops the startup process on the recovery options display, run the following command at a command prompt to break the cycle:
Bcdedit /set {default} recoveryenabled noTreat that command as a diagnostic step. It stops the loop so you can see the real error, and it also stops Windows from reaching WinRE on its own until you set it back to yes.
Quick Machine Recovery: The Cloud Layer on Top of Startup Repair
CrowdStrike’s update affected 8.5 million Windows devices in July 2024, according to Microsoft, and every one of them needed hands-on recovery. Microsoft’s first step born out of the learnings from the July incident was the announcement of Quick Machine Recovery, a way to fix PCs that cannot boot without anyone touching them.
Building on the foundation of Startup Repair, quick machine recovery uses a secure and connected Windows Recovery Environment (WinRE) to scan Windows Update for remediation options. When disabled, Windows uses Startup Repair as a local recovery option, so the manual steps above remain the fallback on every PC.
Who gets it by default depends on the edition:
- Available on Windows 11, version 24H2 build 26100.4700 or later.
- It is enabled by default for Windows 11 Home devices.
- Cloud remediation is disabled by default on enterprise-managed systems, such as domain-joined Pro, Enterprise and Education PCs.
Quick machine recovery is a best-effort feature. It might not always be able to find a solution for every issue. On a Pro machine at home, check the recovery settings once, because the differences between Windows 11 editions decide whether the cloud fix is waiting for you or switched off.
Conclusion
WinRE starts automatically after detecting two consecutive failed attempts to start Windows, so most people first meet Startup Repair on a bad morning. Run it first, read the Srttrail.txt log if it fails, and move to BOOTREC, CHKDSK, SFC and DISM only with the log’s cause in hand. Anyone who keeps a recovery drive in a drawer turns the worst case, a PC whose boot files are gone, into a routine repair.
On Windows 11, version 24H2 build 26100.4700 or later, quick machine recovery uses a secure and connected Windows Recovery Environment (WinRE) to scan Windows Update for remediation options before you ever see the repair menu. Startup Repair remains the local fallback underneath it, which makes knowing these steps useful for years yet.




George
Well written article. Detailed and straight to the point. Thanks for the information.
N Alam Sajib
Very informative article and huge information here how to recover windows. It’s a major problem for the user. Your information is very very helpful for the new user and who are don’t know about windows like me.
A.R.
Will startup repair have any effect on my documents such as deleting them? Or will my files be okay?
Brian
Great guide on Windows StartUp Repair! Clear steps and helpful tips for getting your PC back on track.