To fix an Automatic Repair loop in Windows 11, click Advanced options on the Automatic Repair screen, then go to Troubleshoot > Advanced options. From there, try Uninstall Updates if the loop started after an update, then open Command Prompt and run chkdsk, an offline sfc scan, and the bootrec commands to repair the disk, system files, and boot files. If nothing works, System Restore or Reset this PC with Keep my files usually gets Windows starting again.
These steps are for Windows 11 versions 24H2 and 25H2, and they also work on Windows 10. Work through the fixes in order, from least to most disruptive, and restart after each one to see if Windows loads.
Have Your BitLocker Recovery Key Ready
- Have your BitLocker recovery key ready. Most Windows 11 PCs encrypt the drive, and the recovery tools often ask for the 48-digit key. On another device, sign in to your Microsoft account and follow Microsoft’s steps to find your BitLocker recovery key.
- Unplug extra devices. Remove USB drives, external hard drives, SD cards, and docks. A connected drive can confuse the boot order and cause the loop.
- Keep a laptop plugged in so it doesn’t shut down partway through a repair.
How to Get to Advanced Options
When the Automatic Repair screen says “Your PC did not start correctly,” click Advanced options, then click Troubleshoot > Advanced options. This is the Windows Recovery Environment (WinRE), where all the fixes below live.

If the PC loops without ever showing that screen, force it: turn the PC on, and as soon as the Windows logo appears, hold the power button until it shuts off. Do this twice. On the third start, Windows opens Automatic Repair. If that doesn’t work, boot from a Windows 11 installation USB made on another PC, click Next, and choose Repair your computer. Microsoft’s Windows Recovery Environment page lists all of these entry methods.
Fix 1: Run Startup Repair Once
- In Advanced options, click Startup Repair.
- Choose your account and enter your password or BitLocker key if asked.
- Wait for it to finish. Windows either restarts normally or says Startup Repair couldn’t repair your PC.
If Automatic Repair has already been running Startup Repair over and over, running it again won’t help. Move on to the next fix. Windows saves what Startup Repair found in a log file at C:\Windows\System32\LogFiles\Srt\SrtTrail.txt, which you can open with notepad from Command Prompt if you want to see the reason.
Fix 2: Uninstall the Latest Update

If the loop began right after Windows installed an update, remove it.
- In Advanced options, click Uninstall Updates.
- Click Uninstall latest quality update for a monthly update, or Uninstall latest feature update if Windows recently moved to a new version such as 25H2.
- Follow the prompts and restart.
If the first option doesn’t fix it, go back and try the other.
Fix 3: Repair the Disk, System Files, and Boot Files
Command Prompt in WinRE can fix the three most common causes of the loop: disk errors, damaged system files, and a damaged boot configuration. Click Command Prompt in Advanced options. Enter your BitLocker key if asked.
Find the Windows Drive Letter
In WinRE, Windows isn’t always on drive C:. Type this and press Enter:
bcdedit
Look for the Windows Boot Loader section. The osdevice line shows the drive letter where Windows is installed, such as partition=C: or partition=D:. Use that letter in place of C: in the commands below.
Check the Disk for Errors
chkdsk C: /f /r
This finds and repairs file system errors and bad sectors. It can take an hour or more on a large drive. Let it finish.
Repair System Files Offline
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
This checks protected Windows files and replaces damaged ones. The usual sfc /scannow command doesn’t work in WinRE, so use this offline version.
Rebuild the Boot Files
Run these one at a time, pressing Enter after each:
bootrec /fixmbrbootrec /fixbootbootrec /scanosbootrec /rebuildbcd

If bootrec /rebuildbcd finds a Windows installation and asks “Add installation to boot list?”, type Y and press Enter. If bootrec /fixboot says Access is denied, which is common on newer UEFI PCs, run this command instead. It recreates the boot files from your Windows folder:
bcdboot C:\Windows
These commands come from Microsoft’s advanced troubleshooting for Windows boot problems guide. Type exit, click Continue, and see if Windows starts.
Fix 4: Stop Automatic Repair From Running
If Windows itself is fine but Automatic Repair keeps triggering, you can turn it off so the PC tries a normal start. In Command Prompt, run:
bcdedit /set {default} recoveryenabled no
Restart. If Windows loads, the loop is broken. If you get a blue screen error instead, write down the stop code, since it points to the real cause (often a driver). To turn Automatic Repair back on later, run the same command with yes in place of no.
Once Windows starts, you can check crash logs in Windows 11 to match that stop code to a driver or app.
Fix 5: Start in Safe Mode
Safe Mode starts Windows with only basic drivers, which helps when a new driver or app is causing the loop.
- In Advanced options, click Startup Settings, then Restart.
- After the restart, press 4 or F4 for Safe Mode, or 5 or F5 for Safe Mode with Networking.
If Startup Settings is hard to reach, the steps for starting Windows in Safe Mode while booting cover forced restarts, recovery drives and the msconfig option.
If Windows starts, uninstall any app or driver you added just before the problem started, then restart normally. Microsoft’s Windows startup settings page explains each option.
Fix 6: Use System Restore
System Restore rolls back system files, drivers, and installed programs to an earlier restore point. Your personal files aren’t affected.
- In Advanced options, click System Restore and choose your account.
- Click Next, then pick a restore point dated before the loop started. Check Show more restore points to see older ones.
- Click Next, then Finish, and wait for the PC to restart.
This only works if restore points were being created before the problem. For more detail, read about doing a System Restore in Windows 11. Some newer PCs also show Point-in-time restore, which is different: it rolls back personal files too, so anything you saved after that point is lost.
Fix 7: Check the Boot Order
If a USB drive or second disk is first in the boot order, the PC may keep trying to start from the wrong drive. In Advanced options, click UEFI Firmware Settings > Restart, open the Boot menu, and move Windows Boot Manager to the top. Save and exit. For other ways in, read about entering BIOS or UEFI settings in Windows 11. Don’t change Legacy/CSM, Secure Boot, or SATA mode settings here, since those can stop Windows from booting.
Last Resort: Reset This PC
If nothing else works, click Troubleshoot > Reset this PC and choose Keep my files. Windows reinstalls itself and keeps your personal files, but it removes your installed apps and resets settings. Remove everything also deletes your files, so only choose it if your files are backed up. Microsoft’s recovery options page compares the choices.
If the reset can’t finish, you can wipe and reinstall Windows 11 from a USB drive instead.
If a reset fails too, or chkdsk reports many bad sectors, the drive may be failing. Copy your files off before doing anything else, and contact the PC maker about a replacement drive.
Repair Loop Questions
What causes the Automatic Repair loop?
The most common causes are a failed Windows update, damaged system or boot files, disk errors, a bad driver, and a sudden power loss during startup or an update. Startup Repair’s SrtTrail.txt log often names the cause.
Will fixing the Automatic Repair loop delete my files?
Startup Repair, Uninstall Updates, the Command Prompt fixes, Safe Mode, and System Restore don’t delete personal files. Only Reset this PC with Remove everything and Point-in-time restore can remove files.
Why does Command Prompt ask for a BitLocker key?
The drive is encrypted, and WinRE has to unlock it before it can repair Windows. Enter the 48-digit recovery key from your Microsoft account. Without it, the drive can’t be repaired or read.
How long should Automatic Repair take?
Usually a few minutes. If it’s been stuck on “Diagnosing your PC” or “Attempting repairs” for more than an hour, hold the power button to turn the PC off and use the fixes above.

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are checked step by step against the device or app maker’s own documentation and tested on his own devices whenever he has the hardware or software, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.