Skip to content
WhySoGeek.
Tech Support

Fix the Automatic Repair Loop on Windows 11

Stuck on 'Preparing Automatic Repair' or a repair loop on Windows 11? Here is how to break out with startup repair, boot rebuild, and SFC offline.

Sam Carter 8 min read
Cover image for Fix the Automatic Repair Loop on Windows 11
Photo: cubeydev / flickr (PDM 1.0)

When Windows 11 cannot start normally it triggers Automatic Repair, but sometimes the repair itself fails and the PC reboots straight back into "Preparing Automatic Repair" over and over. This loop usually means corrupt system files, a broken boot configuration, disk errors, or a bad driver or update. The cycle is frustrating because it never reaches the desktop, but you can almost always break out of it from the recovery environment.

Quick answer

To break a Windows 11 Automatic Repair loop, first force a full shutdown with a 10-second power-button hold and drain residual power. If it still loops, enter the recovery menu (Troubleshoot, then Advanced options) and run Startup Repair, then repair system files offline with chkdsk, sfc, and DISM, then rebuild the boot record with bootrec /rebuildbcd. If the loop started after an update or driver, use Uninstall Updates or System Restore. None of these steps touch your personal files; only a final Reset this PC does, and you can choose Keep my files.

This guide moves from the safest fixes to the more involved ones. Work through them in order and stop as soon as the PC boots normally.

Key takeaways

  • A hard power drain sometimes clears a transient glitch that started the loop.
  • Startup Repair in the recovery menu fixes many cases on its own.
  • A broken boot configuration is repaired by rebuilding the BCD from Command Prompt.
  • Offline SFC and DISM repair the system files the loop cannot fix while booting.
  • A recent update or driver is a common trigger; uninstalling it can break the loop.

Before you start, it helps to know which fix targets which cause, so you are not running every command blindly:

Symptom / clueLikely causeFix to tryTime
Loop after a recent updateBad quality updateUninstall Updates / System Restore5-10 min
Loop after installing a driverIncompatible driverSystem Restore to prior point5-10 min
"Boot configuration data is missing"Damaged BCDbootrec /rebuildbcd5 min
Errors mentioning system filesCorrupt Windows filesOffline sfc and DISM15-30 min
Clicking noises, slow accessFailing or erroring diskchkdsk C: /f /r, then plan a replacement20-60 min
No obvious triggerTransient glitchHard power drain2 min

Try a hard power drain first

A stuck repair can come from a temporary hardware state rather than corruption.

    1. Hold the power button for 10 seconds to force a full shutdown.
    2. Unplug the charger and, on a desktop, the power cable.
    3. On a laptop with a removable battery, take it out for 30 seconds.
    4. Reconnect power and start the PC.

If it boots normally, the loop was a transient glitch. If not, move into the recovery menu, which Windows opens automatically after a few failed boots.

Run Startup Repair

From the recovery menu, let Windows attempt its own repair, sometimes it succeeds on a second or third try.

    1. In the recovery menu, choose Troubleshoot, then Advanced options.
    2. Click Startup Repair.
    3. Wait for it to finish, then restart.

Tip

If you cannot reach the recovery menu at all, create a Windows 11 installation USB on another PC with the Media Creation Tool, boot from it, and choose Repair your computer to get the same Advanced options.

Repair system files offline

If Startup Repair fails, run SFC and DISM against your offline Windows installation from Command Prompt.

    1. In Advanced options, open Command Prompt.
    2. Run chkdsk C: /f /r to fix disk errors.
    3. Run sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows.
    4. Run DISM /Image:C:\ /Cleanup-Image /RestoreHealth.
    5. Type exit and restart.

Replace C: with your Windows drive letter if it differs; in recovery mode it is sometimes mapped elsewhere.

A laptop showing a recovery command prompt
Photo: cubeydev / flickr (PDM 1.0)

Rebuild the boot configuration

A damaged boot record keeps the loop alive even when Windows itself is fine. Rebuild it from the same Command Prompt.

    1. Run bootrec /fixmbr.
    2. Run bootrec /fixboot.
    3. Run bootrec /scanos.
    4. Run bootrec /rebuildbcd and press Y to add the detected install.
    5. Restart.

This is the same family of repairs that resolves harder boot stops like INACCESSIBLE_BOOT_DEVICE.

Undo the change that started the loop

If the loop began right after an update or a new driver, remove it. In Advanced options, choose Uninstall Updates and remove the latest quality update. You can also use System Restore from the same menu to roll back to a point before the trouble started. If the machine keeps failing through update installs, our guide to the undoing changes update loop covers that specific cycle.

Last resort: reset while keeping files

If nothing else works, choose Troubleshoot, then Reset this PC, and select Keep my files. This reinstalls Windows while preserving your documents, though you will need to reinstall apps. A cloud download option fetches fresh system files if the local image is also damaged.

What to do right now

If your PC is looping at this moment, work this order and stop the instant it boots:

  • Force a full shutdown (hold power 10 seconds), unplug power, and try one clean boot.
  • Let the recovery menu open, then run Startup Repair and restart.
  • If still looping, open Command Prompt and run chkdsk C: /f /r, then sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows, then DISM /Image:C:\ /Cleanup-Image /RestoreHealth.
  • Rebuild the boot record with bootrec /fixmbr, bootrec /fixboot, and bootrec /rebuildbcd.
  • If the loop started after a patch, use Uninstall Updates or System Restore before anything drastic.
  • Only as a last resort, choose Reset this PC and select Keep my files.

Frequently asked questions

Why is my PC stuck on "Preparing Automatic Repair"?

It means Windows detected a startup failure and launched repair, but the repair could not complete, so it loops. The usual causes are corrupt system files, a broken boot configuration, disk errors, or a bad update or driver. Working through the recovery tools breaks the cycle.

Will fixing the loop erase my files?

The repair steps, Startup Repair, SFC, DISM, and rebuilding the boot record, do not touch your personal files. Only if you reach the final reset step should you choose "Keep my files," which preserves documents while reinstalling Windows. Avoid the option that removes everything unless you have a backup.

What if I cannot even reach the recovery menu?

After several failed boots Windows usually opens it automatically. If it does not, build a Windows 11 installation USB on another computer, boot from it, and choose "Repair your computer" to reach the same Advanced options and run every fix in this guide.

Can a failing hard drive cause this loop?

Yes. Disk errors and bad sectors can corrupt the files Windows needs to start, which keeps the repair from succeeding. Running chkdsk C: /f /r from the recovery Command Prompt repairs many of these. If the drive's health is failing, replacing it is the real fix.

#windows-11#boot#recovery

Sources & further reading

Keep reading