The Automatic Repair loop is one of the most stressful Windows failures: your laptop shows “Preparing Automatic Repair,” then “Diagnosing your PC,” then fails — and after rebooting, does it all again. You’re locked out of Windows entirely, staring at a blue screen with options that don’t seem to help.
The way out is the Advanced options menu hiding behind that blue screen. Every fix below runs from there — no Windows installation required to start. Work through them in order.
Why this happens
- Corrupt Boot Configuration Data (BCD): The BCD store tells Windows how to boot. If it’s damaged, every boot attempt fails identically.
- Failed Windows update: A half-applied cumulative or feature update leaves boot files in an inconsistent state.
- Corrupt system files in the boot path: Damage to winload.efi, ntoskrnl.exe, or early-boot drivers stops startup cold.
- Failing storage drive: Bad sectors in the boot partition cause intermittent boot failures that trigger the repair cycle.
- Recent driver or software change: A bad storage controller or filter driver installed just before the loop began.
- Disk partition or boot mode mismatch: BIOS/UEFI boot mode changed (Legacy vs UEFI), or the EFI partition damaged, so the bootloader can’t find Windows.
How to fix it
Work through these in order — each step runs from the recovery environment.
Fix 1: Break the loop and reach Advanced options
First, stop the cycle and get to the tools.
- On the blue Automatic Repair screen, click Advanced options (not Restart — Restart just loops again).
- If you only see “Preparing Automatic Repair” forever, force it: hold the power button to shut down during the spinner, twice. On the third boot, Windows should offer the recovery screen.
- From Advanced options, you have Troubleshoot > Advanced options with Command Prompt, Startup Repair, System Restore, and more — the fixes below live here.
- If the laptop can’t even reach this screen, create Windows 11 installation media on another PC (Microsoft’s download page ), boot from the USB, choose your language, and click Repair your computer.
Fix 2: Run Startup Repair properly
The automatic attempt failed, but a manual run sometimes succeeds — especially after you’ve tried nothing else yet.
- Go to Troubleshoot > Advanced options > Startup Repair.
- Select your Windows installation and let it run to completion (give it up to 30 minutes).
- If it reports it couldn’t repair, check the log it mentions: from Command Prompt, type
notepad C:\Windows\System32\Logfiles\Srt\SrtTrail.txtto read what failed. - Move on — Startup Repair fixing it here is a bonus, not the plan. Our srttrail.txt error guide goes deeper on this specific log.
Fix 3: Rebuild the Boot Configuration Data
Corrupt BCD is the top fixable cause. Rebuild it from the command prompt.
- Open Command Prompt from Troubleshoot > Advanced options.
- Run these commands one at a time:
bootrec /fixmbrbootrec /fixboot(if “Access denied,” see step 4)bootrec /rebuildbcd - If
rebuildbcdfinds your Windows installation, typeYto add it, then restart withwpeutil reboot. - If
fixbootgives “Access denied,” run:diskpart, thenlist vol, find the FAT32 EFI partition,sel vol <number>,assign letter=Z:,exit, thenbcdboot C:\Windows /s Z: /f UEFI. - Restart and see if Windows boots. This resolves a large share of repair loops.
Fix 4: Uninstall the latest Windows update
If the loop started right after an update, remove it from the recovery environment.
- Go to Troubleshoot > Advanced options > Uninstall Updates.
- Try Uninstall latest quality update first, then restart and test.
- If that doesn’t help, go back and try Uninstall latest feature update.
- Once booted, pause updates (Settings > Windows Update > Pause updates) for a week and check our blue screen after Windows 11 update guide before reinstalling the update.
Fix 5: Run offline SFC and DISM
Repair corrupted system files without booting Windows.
- Open Command Prompt from Advanced options.
- Find your Windows drive letter — in recovery it may not be C:. Run
diskpart,list vol,exit, then check withdir D:\etc. until you find the Windows folder. - Run offline SFC:
sfc /scannow /offbootdir=X:\ /offwindir=X:\Windows(replace X: with the correct letter). - Then run DISM offline:
DISM /Image:X:\ /Cleanup-Image /RestoreHealth. - Restart with
wpeutil rebootand test.
Fix 6: Check the drive for failure
If boot files keep corrupting, the drive itself may be dying.
- In the recovery Command Prompt, run
chkdsk C: /f /r(use the correct drive letter from Fix 5). - Let it complete — on large drives this takes an hour or more. Look for “bad sectors” in the summary.
- If chkdsk finds many bad sectors, or the manufacturer’s diagnostics report failure, back up immediately: from the command prompt, use
xcopyorrobocopyto copy your user folder to an external drive, e.g.robocopy C:\Users\YourName E:\Backup /E. - A failing drive means replacement — no software fix will hold. Laptop maker diagnostics: Dell , HP , Lenovo .
Fix 7: System Restore or reset as final options
If the BCD rebuild and file repairs didn’t work, roll the system back.
- Go to Troubleshoot > Advanced options > System Restore and pick a restore point from before the loop began.
- If no restore points exist, use Troubleshoot > Reset this PC > Keep my files — this reinstalls Windows while preserving personal files (you’ll reinstall apps).
- Only as an absolute last resort: Remove everything for a clean install.
- After recovering, disable the conditions that caused it: keep BIOS and storage drivers current, and don’t interrupt Windows updates mid-install.
Related loop scenarios: automatic repair loop on Lenovo laptops and our Safe Mode guide if you need to reach Safe Mode once booting works.
Closing
The Automatic Repair loop feels like a dead end, but it’s almost always a boot configuration or update problem — both fixable from the recovery command prompt without losing files. Rebuild the BCD, uninstall the offending update, repair system files offline, and check the drive. Work the list patiently; the loop breaks as soon as the underlying boot fault is repaired.
