The Automatic Repair loop is Windows trying to help and failing in a circle: boot fails, repair runs, repair can’t fix it, reboot, boot fails again. You’ll see “Preparing Automatic Repair,” then “Diagnosing your PC,” then the blue recovery screen — every single time. The way out isn’t running the repair again; it’s taking manual control.
The loop has a handful of usual causes: corrupted boot files, a bad driver or update, a damaged registry, or a failing drive. The fixes below go from breaking the loop open to repairing each cause. Your files are safe throughout — this is a boot problem, not a data problem.
Why this happens
- Corrupted Boot Configuration Data (BCD) — the bootloader’s instructions are damaged.
- Damaged system files critical to startup, often from an interrupted update.
- A bad driver or Windows update that breaks the boot process.
- Corrupted registry hives preventing Windows from loading its configuration.
- Failing SSD/HDD with bad sectors in the boot or system areas.
- Incorrect BIOS settings (SATA mode changed from AHCI to RAID, or vice versa) after a BIOS update or reset.
How to fix it
Work through these in order, from quickest to most involved.
Fix 1: Break the loop — boot to Advanced options
First, stop the cycle so you can work.
- On the Automatic Repair screen, click Advanced options instead of Restart.
- Go to Troubleshoot → Advanced options — this is your workshop for everything below.
- If the laptop reboots into the loop before you can click, force it: hold the power button during “Preparing Automatic Repair” to interrupt, and on the next boot you should land on the recovery screen directly.
- From here, don’t choose “Continue” or “Turn off your PC” yet — head to Command Prompt first.
Fix 2: Disable Automatic Repair temporarily
This stops the loop from hijacking every boot while you repair.
- In Troubleshoot → Advanced options → Command Prompt, run:
bcdedit /set {default} recoveryenabled No - Type
exitand choose Continue. Windows will now show the actual error (blue screen or boot error) instead of looping. - Note the error — a stop code or “INACCESSIBLE_BOOT_DEVICE” tells you where to focus.
- You can re-enable it later with
bcdedit /set {default} recoveryenabled Yesonce booting is fixed.
Fix 3: Rebuild the boot files with bootrec
Corrupted boot files are the most common cause, and these commands rebuild them.
- Back in the recovery Command Prompt, run these in order:
bootrec /fixmbrbootrec /fixboot(If fixboot gives “Access is denied,” use the bcdboot method in step 3.)bootrec /scanosbootrec /rebuildbcd - If prompted to add installations to the boot list, type Y for each.
- For the “Access is denied” case, run instead:
bcdboot C:\Windows /s C: /f UEFI(Adjust drive letters to match your Windows partition as seen from recovery.) - Type
exit, choose Continue, and test the boot.
For the SrtTrail-specific variant of this loop, our SrtTrail.txt error guide covers reading the log to target the exact failing file.
Fix 4: Run Startup Repair manually (once, properly)
The automatic version failed, but a manual run after bootrec sometimes succeeds.
- Go to Troubleshoot → Advanced options → Startup Repair.
- Let it run exactly once. If it fails, don’t repeat it — move on.
- If it reports it can’t fix the PC, click Advanced options and continue with Fix 5.
- Check the log afterward at
C:\Windows\System32\LogFiles\Srt\SrtTrail.txtvia Command Prompt + Notepad for the named cause.
Fix 5: Uninstall the breaking update or driver
If the loop started after Patch Tuesday or a driver update, remove the trigger.
- Go to Troubleshoot → Advanced options → Uninstall Updates.
- Try Uninstall latest quality update first, then test booting.
- If that doesn’t work, try Uninstall latest feature update.
- For driver-caused loops, boot into Safe Mode (via Startup Settings) and roll back the suspect driver in Device Manager.
Fix 6: Check the drive and system files
Boot-area disk damage causes loops that bootrec can’t fix alone.
- In the recovery Command Prompt, run
chkdsk C: /f /r(use the correct drive letter for Windows in recovery). - Then run
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows. - Follow with
DISM /Image:C:\ /Cleanup-Image /RestoreHealth. - If chkdsk reports bad sectors in the boot area, the drive may be failing — check SMART data and plan a replacement.
Fix 7: Restore the registry from backup
Windows keeps automatic registry backups that can undo corruption.
- In the recovery Command Prompt, navigate to
C:\Windows\System32\config. - Check for the RegBack folder:
dir C:\Windows\System32\config\RegBack. - If it contains files with nonzero sizes, back up the current hives and copy the RegBack versions over them:
copy C:\Windows\System32\config\RegBack\* C:\Windows\System32\config\ - Confirm each overwrite, type
exit, and boot. (On newer Windows 11 builds RegBack may be empty — if so, skip this fix.)
Fix 8: System Restore, reset, or clean install
The escalation ladder when repairs fail.
- Try System Restore (Troubleshoot → Advanced options → System Restore) and pick a restore point from before the loop started.
- If no restore points exist, use Reset this PC → Keep my files.
- If the reset fails, back up your data from the recovery Command Prompt (
notepad.exe→ File → Open gives you a file browser for copying to USB), then clean-install from official Windows 11 media . - After any successful boot, immediately check the drive’s SMART health — loops caused by dying drives will return.
Our step-by-step automatic repair loop guide covers additional command-line repairs if the bootrec sequence above didn’t resolve it.
Closing
The Automatic Repair loop feels like a dead end because Windows keeps “fixing” the same unfixable thing. The way out is to stop letting it: break into Advanced options, rebuild the boot files manually, remove the triggering update, and check the drive. Most loops surrender to bootrec or an update uninstall. And if the drive turns out to be the cause, you’ve just caught a failing SSD before it took your data — which makes the loop almost worth it. Almost.
