Skip to content

How to Fix the Windows 11 Automatic Repair Loop

Stuck on 'Preparing Automatic Repair' or 'Automatic Repair couldn't repair your PC'? Work through Startup Repair, bootrec, SFC/DISM offline, and more to break the loop.

MGMCSA Guru Team August 4, 2026 9 min read
A laptop showing the blue Windows Recovery Environment screen with Automatic Repair options and a circular arrow indicating a boot loop

Your PC tries to start, flashes “Preparing Automatic Repair,” sits on a black screen for a while, then either lands on “Automatic Repair couldn’t repair your PC” or reboots and does the whole thing again. That’s the automatic repair loop, and it means Windows knows it can’t boot normally but its built-in repair can’t fix the cause either.

The loop itself isn’t the problem — it’s a symptom. Something underneath is broken: the boot configuration, system files, a driver, a recent update, or the disk. The fix is to get into the Windows Recovery Environment (WinRE) and work through the causes in order, from the safe and quick to the more involved. Most loops clear well before you reach the last resort.

What actually causes the loop

Knowing the likely cause saves you time, because each cause has a different fix.

Common causes and where to go

Damaged boot configuration (BCD) bootrec /rebuildbcd
Corrupted system files Offline SFC and DISM
Bad update or driver System Restore or uninstall the update
File system / disk corruption chkdsk, then SFC/DISM
Repair tool itself failing silently Disable auto-repair to see the real error

Get into the Windows Recovery Environment

Everything starts in WinRE. Windows normally drops you there on its own after the loop, but if it doesn’t, force it.

  • Interrupt the boot three times. Power on, and as soon as you see the Windows logo or spinning dots, hold the power button to force off. Do this three times and the fourth boot opens WinRE.
  • Shift + Restart, if you can still reach a login or Start menu.
  • Boot from Windows 11 install media (a USB you make on another PC with the Media Creation Tool), then choose Repair your computer at the bottom-left.

Once in WinRE, the path you’ll use most is Troubleshoot → Advanced options.

Step 1: Run Startup Repair

It’s the obvious first move and it does fix a fair share of loops on its own. Go to Advanced options → Startup Repair and let it run. It diagnoses boot files, the BCD, and a few common faults, then either fixes them or tells you it couldn’t.

If it works, great — you’re done. If you get “Automatic Repair couldn’t repair your PC,” don’t read too much into it. Startup Repair only handles a narrow set of problems automatically. The message is just telling you to move to the manual tools.

Step 2: Rebuild the boot files with bootrec

A broken or missing BCD is one of the most common reasons for the loop, and bootrec is the tool for it. Open Advanced options → Command Prompt and run these in order:

bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd

/fixmbr and /fixboot repair the master boot record and boot sector. /scanos looks for Windows installations, and /rebuildbcd rebuilds the boot configuration store. When /rebuildbcd finds an installation, it asks to add it to the boot list — type Y and press Enter.

If the BCD is stubborn, fully rebuilding it sometimes works where a plain /rebuildbcd doesn’t:

bcdedit /export C:\bcd_backup
attrib C:\boot\bcd -h -r -s
ren C:\boot\bcd bcd.old
bootrec /rebuildbcd

Step 3: Run SFC and DISM offline

If the boot files are fine but Windows still won’t start, corrupted system files are the next suspect. You can run System File Checker and DISM from the recovery command prompt, but pointed at the offline installation rather than the recovery environment.

First, confirm the drive letter. WinRE frequently mounts your Windows install as D: or another letter, not C:. Check before you run anything:

diskpart
list vol
exit

Look for the volume that holds \Windows — its size and label usually give it away. Use that letter below (this example assumes Windows is on C:):

sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows

DISM /Image:C:\ /Cleanup-Image /RestoreHealth

sfc checks and repairs protected system files. DISM /RestoreHealth repairs the component store that SFC pulls its known-good files from, so if SFC can’t fix everything, run DISM and then SFC again. Offline DISM needs a source for clean files — if it can’t find one, point it at a mounted install image with /Source:wim:D:\sources\install.wim:1 /LimitAccess.

While you’re here, a quick disk check rules out file-system damage:

chkdsk C: /f /r

Step 4: Disable automatic repair to see the real error

This step doesn’t fix anything by itself, but it’s the one that breaks you out of the loop so you can actually read what’s wrong. When you disable Automatic Repair, Windows stops silently rebooting into it and instead shows the real boot failure — often a stop code that points straight at the cause, like a specific driver.

From the recovery command prompt:

bcdedit /set {default} recoveryenabled No

Reboot. Instead of looping, you’ll either boot through or hit a blue screen with a named error. Note the stop code or failing file — that’s your lead. Once you’ve fixed the underlying issue, turn the feature back on:

bcdedit /set {default} recoveryenabled Yes

If the error names a specific driver, you can often rename or disable that driver file from the recovery command prompt to get a one-time boot, then fix it properly from inside Windows.

Step 5: Roll back with System Restore

If the loop started right after an update, a driver install, or new software, System Restore is the cleanest fix — it rewinds system files and settings to a restore point without touching your documents.

Go to Advanced options → System Restore (or run rstrui from the command prompt), pick a restore point from before the trouble started, and let it run.

If a single update is the culprit and you’d rather target it directly, you can remove the most recent quality or feature update from Advanced options → Uninstall Updates.

Last resort: Reset this PC

When the boot files are rebuilt, system files check out, there’s no restore point, and it still loops, the install is too damaged to repair in place. Reset this PC reinstalls Windows while letting you keep personal files.

Go to Troubleshoot → Reset this PC → Keep my files. You’ll choose between a cloud download (pulls a fresh copy of Windows from Microsoft) and a local reinstall (rebuilds from the files already on the device). If the loop was caused by corrupted system files, pick cloud download — a local reinstall may just put the same damaged files back.

Before you Reset

  • Confirm your important files are backed up or copied off the drive
  • Know your Microsoft account or local password to sign back in
  • Have any app installers or license keys you'll need to reinstall
  • Choose cloud download if you suspect corrupted system files

Keep my files removes your installed apps and resets settings, but keeps documents, photos, and the like. If even Reset fails to start, back up from WinRE and do a clean install from your Windows 11 USB. For a deeper look at what Reset keeps versus removes, see how to reset Windows 11 without losing files.

A sensible order to work in

You don’t need every step — you stop at the one that works. But the order matters, because the early steps are quick and safe and the later ones are slower or more disruptive.

  1. Startup Repair — let Windows try the automatic fix.
  2. bootrec — rebuild the BCD and boot files (most loops end here).
  3. SFC / DISM offline — repair corrupted system files; add chkdsk if you suspect the disk.
  4. Disable auto-repair — surface the real error if you’re still stuck.
  5. System Restore — roll back a bad update or driver.
  6. Reset this PC (Keep my files) — last resort before a clean install.

A lot of these problems trace back to a botched update, so if your trouble began mid-update it’s worth knowing how to fix Windows Update when it’s stuck too. And if SFC and DISM are doing the heavy lifting, the full DISM and SFC repair walkthrough covers the source-file and component-store details in more depth.

Wrapping up

The automatic repair loop looks alarming but it’s usually a boot or system-file problem with a known fix. Get into WinRE, try Startup Repair, then rebuild the boot files with bootrec — that combination clears the majority of cases. If it persists, repair system files offline with SFC and DISM, disable auto-repair to read the real error, and roll back with System Restore. Reset this PC is the safety net, and Keep my files means it doesn’t have to cost you your data.

Frequently asked questions

What causes the Windows 11 automatic repair loop?

It's usually a damaged boot configuration (BCD), corrupted system files, a bad driver or update, or disk corruption. Windows detects that it can't start normally, runs Automatic Repair, fails, and reboots straight back into the same repair — which is the loop you see.

How do I stop the automatic repair loop quickly?

Boot into the Windows Recovery Environment, run Startup Repair first, and if that fails work through bootrec to rebuild the BCD. If the repair tools keep failing, the disable command 'bcdedit /set {default} recoveryenabled No' lets Windows show the real boot error instead of looping into repair.

Will fixing the repair loop erase my files?

The repair steps here — Startup Repair, bootrec, SFC/DISM, and System Restore — are designed to leave your files alone. Only the last-resort 'Reset this PC' or a clean install can remove data, and Reset gives you a 'Keep my files' option. Back up first if the drive is still readable.

Why does Startup Repair say it couldn't repair my PC?

Startup Repair only fixes a narrow set of boot problems automatically. If the damage is in the BCD store, the file system, or system files, it gives up with 'Automatic Repair couldn't repair your PC.' That's your cue to move on to bootrec and offline SFC/DISM.

How do I run SFC and DISM when Windows won't boot?

From the recovery command prompt you run them offline against the installed Windows drive — for example 'sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows' and 'DISM /Image:C:\ /Cleanup-Image /RestoreHealth'. Check the drive letter first, because WinRE often assigns Windows a different letter than C:.

What if nothing fixes the loop?

If Startup Repair, bootrec, SFC/DISM, and System Restore all fail, the install is likely too damaged to recover in place. Use 'Reset this PC' with 'Keep my files', and if that won't run either, back up your data from recovery and do a clean install.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.