Windows Automatic Repair Loop? How to Fix It

When Windows is stuck in an Automatic Repair loop, the PC shows "Preparing Automatic Repair", then "Startup Repair couldn’t repair your PC", restarts and does it again. The loop can come from damaged boot files, a bad update or driver, a failing drive or bad memory. This guide starts with the safest steps and moves to the stronger ones, and each step says what to do if it fails. A loop can also start after a blue screen of death (BSOD) crash. If a damaged registry is part of the picture, see how to repair a damaged registry before going further.
Windows 10 note: Windows 10 reached end of support on October 14, 2025, so it no longer gets free security updates. These steps work on Windows 10 and 11. When the PC is working again, consider moving to Windows 11 or enrolling in Extended Security Updates.
Before you start
- Your files are normally still on the drive, so avoid a reset until the end.
- You may need a Windows installation USB or a recovery drive made on another PC.
- BitLocker warning: if a blue screen asks for a 48-digit BitLocker recovery key, find it on another device at account.microsoft.com/devices/recoverykey (or ask your IT admin) before changing anything. Without it, Uninstall Updates, System Restore and file copying cannot reach the drive.
- Different problem? If Windows never shows the repair screen and instead stays on the logo with spinning dots, see Windows 11 stuck on the loading screen.
Step-by-step: break the loop
Step 1: Unplug extras and restart
Disconnect USB drives, printers and other devices, and restart. If it boots, plug the devices back in one at a time to find the one that caused the loop. If the loop continues, go on. If you are not sure which step applies to your PC, the guided Repair Assistant can narrow it down.
Step 2: Open the recovery menu
On the repair screen choose Advanced options (the blue Windows Recovery Environment). If the screen never gives you that button, force it: when the Windows logo appears at startup, hold the power button for about 10 seconds until the PC switches off. Do this two or three times, then let it start. Windows should open the recovery screen on the next start. If that fails, start from a Windows installation USB and choose Repair your computer. If the recovery screen still will not open, see how to check and enable Windows RE.
Step 3: Try Startup Repair again
Choose Troubleshoot > Advanced options > Startup Repair, pick your account and let it finish. If it says it could not repair the PC, continue. For more on this tool, see how to use Windows Startup Repair.
Step 4: Read the log
Open Command Prompt from the Advanced options. The Windows drive may not be C: here, so check first: run dir C:, then dir D: and so on, until you see the Windows folder. Then run, with your letter:
notepad C:\Windows\System32\Logfiles\Srt\SrtTrail.txt
Read the line that starts Root cause found. It often names a file or driver. A message such as "Boot critical file is corrupt" points to Step 5 and Step 9. If the file does not exist, Startup Repair did not get far enough to write it, which points to the drive or the boot files. If the log names a missing or corrupt config SYSTEM file, the registry hive itself is damaged; see Windows could not start: config SYSTEM missing or corrupt.
Step 5: Repair the boot files and check the disk
In Command Prompt run these two commands. The first lists the Windows installs it finds, and the second rebuilds the boot list:
bootrec /scanos
bootrec /rebuildbcd
"Total identified Windows installations: 1" is good: press Y when asked to add it. If it says 0, Windows was not found; check the drive letter and the drive health (Step 10). If bootrec /fixboot says "Access is denied" on a UEFI PC, follow the diskpart and bcdboot steps in fix No bootable device.
Then check the file system without changing it:
chkdsk C: /scan
Use the right drive letter. If it reports errors, copy your files first (Step 11), then run chkdsk C: /f. If the drive clicks, disappears or shows warnings, do not run repair scans on it, because they can make recovery harder.
Step 6: Uninstall the latest update
Choose Troubleshoot > Advanced options > Uninstall Updates. First choose Uninstall latest quality update and restart. If it still loops, repeat with Uninstall latest feature update. If Windows says it cannot find an update to remove, go to Step 7. See how to uninstall a Windows update.
Step 7: Use System Restore
Choose System Restore and pick a point from before the problem began (see how to use System Restore). It keeps your files and undoes recent drivers and updates. If it says there are no restore points, System Protection was probably off; go to the next step.
Step 8: Try the startup options
Choose Troubleshoot > Advanced options > Startup Settings > Restart, then press the number key for each option:
- 9 disables the automatic restart after a failure, so you can read the error. If the stop code is CRITICAL_PROCESS_DIED, see what CRITICAL_PROCESS_DIED means
- 7 disables driver signature enforcement
- 8 disables early launch anti-malware protection
- 4 starts Safe Mode, where you can remove a bad driver or program
Use options 7 and 8 only to test, and restart normally afterwards to turn them off. If Windows starts with one of them, a driver or security driver is likely the cause: remove or update the newest one. If it starts in Safe Mode, uninstall the latest drivers and programs from there. Older guides also suggest Last Known Good Configuration for this, but Windows 10 and 11 no longer offer it; what to use instead of it is covered in a separate guide.
Step 9: Repair system files offline
In Command Prompt run the offline scan, with the right drive letter in both places:
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
"Windows Resource Protection found corrupt files and successfully repaired them" is a good result: restart. If it cannot repair them, go on. For DISM and the longer routine, see how to repair Windows system files.
Step 10: Check the drive and the memory
A failing drive or bad memory can cause the loop. Do these checks in order:
- Restart into the BIOS and check that your drive is listed with its model name. If it is missing, shut down, unplug and reseat the SATA or M.2 connection on a desktop (laptops: contact the maker). See how to check your hard drive or SSD health.
- Test the memory with a MemTest86 USB drive for several passes (see how to check if your RAM is failing). If it reports errors, test one stick at a time.
A failed test points to a faulty part, and a reset is unlikely to hold until that part is replaced. Bad memory can also cause a MEMORY_MANAGEMENT blue screen; that guide covers the fix.
Step 11: Save your files, then reset
If nothing works, copy your files first. With an empty USB drive plugged in, open Command Prompt, find its letter with dir E: and so on, and run:
robocopy C:\Users\YourName\Documents E:\Backup\Documents /E
Replace YourName with your folder name from dir C:\Users, and repeat for Pictures and Desktop. Then choose Troubleshoot > Reset this PC > Keep my files. If that fails, do a clean install, which erases the drive. If Reset this PC stops with a "There was a problem resetting your PC" error, read that guide before you try again.
More help
For more boot and startup fixes, search by symptom in the PC repair guides on PC Repair Atlas.
FAQ
Will I lose my files? The steps before the reset are not meant to delete files, but a failing drive can still lose data, so back up first.
Why did the loop start? Often an update, a power cut during startup or a failing drive.
Can I stop Automatic Repair from running? For testing you can run bcdedit /set {default} recoveryenabled No in Command Prompt, so the PC shows the real error instead of looping. Turn it back on afterwards with bcdedit /set {default} recoveryenabled Yes. It does not fix the cause.