An Automatic Repair loop means Windows failed to start twice in a row, opened its recovery menu, couldn’t fix the problem, and is trying again. The likeliest cause is a Windows update, driver or system file that broke startup, not a dead laptop. You get out of it from the same recovery menu, in a set order, and only one option, Reset’s Remove everything, says it deletes your files.
Our laptop troubleshooting guide sorts every startup fault by symptom. This page goes deeper on the loop: which button to press, how to read its log, Microsoft’s commands, and saving your files before Reset.
What causes an automatic repair loop?
A startup failure causes it, and Windows decides what counts. Microsoft’s technical reference lists the triggers: two failed attempts to start Windows in a row, two unexpected shutdowns or two restarts within two minutes of the boot finishing, a Secure Boot error, and a BitLocker error on touch-only devices (Microsoft Learn). Any of these sends the laptop into the Windows Recovery Environment (WinRE), and Automatic Repair starts there (Microsoft Learn).
Startup Repair, the tool behind it, checks for damaged system files, corrupted boot configuration data (BCD), a damaged master boot record, incompatible drivers and registry errors (Microsoft). When it can’t fix the fault, the next start fails too, and you’re back on the same screen.
Holding the power button through it won’t help. Cutting power twice during startup is how Microsoft says to force the recovery menu open (Microsoft), so it feeds the loop.
Before you touch anything: BitLocker key and files
Get your BitLocker recovery key first. Microsoft says Startup Repair, System Restore, Startup Settings and Reset all ask for it on an encrypted device (Startup Repair, System Restore, Startup Settings, Reset). On a phone or another computer, go to aka.ms/myrecoverykey and sign in with the Microsoft account used on the laptop; work and school laptops use aka.ms/aadrecoverykey. Match the first 8 digits of the recovery key ID shown on the laptop. Microsoft Support can’t retrieve or recreate a lost key (Microsoft).
Only System Restore and Reset’s Keep my files say outright that they keep your documents, and none of these steps is a backup. If the laptop holds the only copy of something, copy it off before step 8.
How do I get out of the automatic repair loop?
Work down this list and test a normal start after each step.
1. Restart once, then try Continue
On the Automatic Repair screen, choose Restart. If the screen comes back, choose Advanced options, then Continue on the “Choose an option” screen to try Windows again. Those are Microsoft’s first two steps for Surface laptops (Microsoft); the page is Surface-only, but the menus are standard Windows.
2. Uninstall the latest update if the loop began after one
If the laptop updated last night and looped this morning, start here. Choose Advanced options > Troubleshoot > Advanced options > Uninstall Updates > Uninstall latest quality update (Microsoft). Restart and see if it boots.
3. Run Startup Repair and read SrtTrail.txt
Choose Troubleshoot > Advanced options > Startup Repair > Restart (Microsoft). If it can’t fix the problem, Microsoft says it gives a detailed report. Startup Repair also writes a log file at:
%windir%\System32\LogFiles\Srt\Srttrail.txt
That path is from Microsoft Learn, and an asker on Microsoft Q&A quoted it from the “couldn’t repair your PC” screen (example). Its stated cause decides your next step. A driver or system file named in it points to steps 4 to 6. A boot configuration or boot sector problem points to bcdboot in step 6. A disk error points to the hardware box below.
4. System Restore
Choose Troubleshoot > Advanced options > System Restore and pick a point from before the trouble started (Microsoft). It rolls back system files, registry settings and installed programs “without affecting your personal files”. Microsoft’s Surface page warns it may remove recently installed apps and drivers, so have installers and product keys ready (Microsoft). No restore points listed? Skip ahead.
5. Safe Mode
Safe Mode starts Windows with a limited set of files and drivers. Choose Troubleshoot > Advanced options > Startup Settings > Restart, then press 4 for Safe Mode or 5 for Safe Mode with Networking (Microsoft). If it starts, uninstall the driver or app you added last, then restart normally.
6. Repair commands from the recovery Command Prompt
Choose Troubleshoot > Advanced options > Command Prompt. One trap first: from a recovery or install command line, Windows may not be on drive C:. Microsoft’s bcdboot repair steps use D: and say to check the letter with diskpart first:
diskpart
list vol
exit
Look for the volume with your Windows drive’s size, and use its letter wherever the commands below say C:. Run System File Checker against the offline copy of Windows:
SFC /Scannow /OffBootDir=C:\ /OffWinDir=C:\Windows
If the loop started during an update, check for pending update packages, then roll back the unfinished changes. Microsoft’s boot guide gives both:
DISM /image:C:\ /get-packages
DISM /Image:C:\ /Cleanup-Image /RevertPendingActions
If the log or the error points at boot files, copy fresh ones from the Windows folder to the system partition (Microsoft Learn):
bcdboot C:\Windows
For “Bootmgr missing” style errors, Microsoft also lists BOOTREC commands; the hub has them. Dell’s fallback order matches this page: System Restore, System File Checker, then back up and reinstall (Dell).
Commands from Microsoft Learn: Advanced troubleshooting for Windows boot problems and Microsoft Learn: BCDBoot, checked Oct 28, 2026.
Leave chkdsk /f /r for last, and only on a drive that’s quiet. Microsoft says /r reads every sector, which takes “a considerable amount of time” on a large hard drive (Microsoft Learn). On a failing drive, copy your files first.
If the laptop keeps stopping on the recovery options, Microsoft gives a command to break that cycle. It switches off the automatic jump to recovery; it doesn’t fix the cause (Microsoft Learn):
Bcdedit /set {default} recoveryenabled no
7. Copy your files off
If you’ve reached this point, back up before you reset. In a 2021 Microsoft Q&A thread, the asker’s reset kept failing, and replies suggested taking the drive out, reading it from another computer through a USB adapter, and copying the files off before reinstalling (Microsoft Q&A). Drive location and connectors vary by model, so Dell says to check the service manual before opening one (Dell); if you can’t get the drive out, a repair shop is the route.
8. Reset this PC with Keep my files
Choose Troubleshoot > Reset this PC > Keep my files. Microsoft says it “removes apps and settings but preserves your documents, photos, and other personal data” (Microsoft). Cloud download fetches a fresh copy of Windows; Local reinstall uses files already on the laptop. If Keep my files fails, Remove everything wipes personal files too. Only do that once your files are safe.
What each recovery option does to your files
| Option (Troubleshoot > Advanced options) | What it changes | Your documents | Source |
|---|---|---|---|
| Startup Repair | System files, BCD, master boot record, drivers, registry errors | Not listed as changed | Microsoft |
| Uninstall latest quality update | Removes the latest quality update | Not listed as changed | Microsoft |
| System Restore | System files, registry, installed programs back to a restore point | Kept (“without affecting your personal files”) | Microsoft |
| Startup Settings > 4 (Safe Mode) | Nothing; starts with fewer drivers | Not touched | Microsoft |
| Command Prompt (sfc, DISM, bcdboot) | System files, pending updates, boot files | Not listed as changed; chkdsk /r on a failing drive is a risk | Microsoft Learn |
| Reset this PC > Keep my files | Reinstalls Windows, removes apps and settings | Kept | Microsoft |
| Reset this PC > Remove everything | Reinstalls Windows | Deleted | Microsoft |
In one HP Community thread, an HP employee suggested a hard reset (holding power 10 to 15 seconds), then tapping F11 for HP’s recovery environment and Startup Repair or System Restore (HP Community). A second owner in the same thread had tried that and still looped, then got a “BIOS not found” message. Once startup messages mention the BIOS or boot device, treat it as hardware. Recovery keys vary by maker, so check your user guide.
FAQ
Why does my laptop say Automatic Repair couldn't repair your PC?
Startup Repair found a problem it couldn’t fix. Its log, Srttrail.txt, says what it found. Work through the steps above, starting with the latest update.
How do I get out of the automatic repair loop without losing files?
Work through steps 1 to 6 above first; System Restore says outright it keeps personal files. If you reach Reset this PC, copy your files off, then choose Keep my files.
What is SrtTrail.txt?
It’s the log Startup Repair writes when it runs. Microsoft gives its location as %windir%\System32\LogFiles\Srt\Srttrail.txt. Its stated cause, such as a driver, boot files or a disk error, decides your next step.
Can I turn off Automatic Repair?
Microsoft’s boot guide gives Bcdedit /set {default} recoveryenabled no for a PC that keeps stopping on the recovery screen. It stops the recovery screen from opening by itself but doesn’t fix why Windows fails to start, so you still need to fix the cause.
Does an automatic repair loop mean my hard drive is dead?
Not usually. Updates, drivers and damaged system files are the common causes. Suspect the drive if it clicks, if chkdsk can’t read it, if the maker’s diagnostics flag storage, or if the loop survives a reset.
What to do next
- Get your BitLocker key from aka.ms/myrecoverykey on another device.
- On the repair screen: Restart, then Advanced options > Continue.
- If it began after an update, uninstall the latest quality update; otherwise run Startup Repair and note what SrtTrail.txt says.
- Try System Restore and Safe Mode, then the commands; copy your files off before Reset this PC.
- If it loops after a reset, run the maker’s diagnostics and price the repair with our repair or replace calculator. You’ll need your exact model; here is how to find it.
Related guides
- How to Troubleshoot a Laptop or PC: Fixes by Symptom, With Commands
- “No Bootable Device” on a Laptop: What It Means and How to Fix It
- Laptop Stuck on the Logo Screen? What to Do, in Order
- Laptop Won’t Turn On? 8 Checks Before You Pay for a Repair
- Why Does My Laptop Keep Freezing? What to Check, in Order
Sources
- Microsoft: Surface turns on and starts Automatic Repair (updated Jul 30, 2026; checked Oct 28, 2026)
- Microsoft: Windows Recovery Environment (updated Sep 28, 2026; checked Oct 28, 2026)
- Microsoft Learn: Windows RE technical reference (updated Aug 19, 2026; checked Oct 28, 2026)
- Microsoft Learn: Windows RE troubleshooting features (updated Dec 15, 2021; checked Oct 28, 2026)
- Microsoft: Startup Repair (updated Sep 28, 2026; checked Oct 28, 2026)
- Microsoft: How to uninstall a Windows update (updated Sep 28, 2026; checked Oct 28, 2026)
- Microsoft: System Restore (updated Sep 28, 2026; checked Oct 28, 2026)
- Microsoft: Windows startup settings (checked Oct 28, 2026)
- Microsoft: Reset your PC (updated Sep 28, 2026; checked Oct 28, 2026)
- Microsoft Learn: Advanced troubleshooting for Windows boot problems (updated Feb 12, 2026; checked Oct 28, 2026)
- Microsoft Learn: BCDBoot command-line options (updated Jul 29, 2025; checked Oct 28, 2026)
- Microsoft Learn: chkdsk (updated May 26, 2025; checked Oct 28, 2026)
- Microsoft: Use the System File Checker tool (KB 929833) (checked Oct 28, 2026)
- Microsoft: Find your BitLocker recovery key (updated Sep 28, 2026; checked Oct 28, 2026)
- Dell: Fix hard drive and SSD issues (checked Oct 28, 2026)
- Dell: Run Startup Repair on a Dell PC (KB 000123362) (modified Aug 20, 2026; checked Oct 28, 2026)
- Microsoft Q&A: Automatic Repair Loop (forum thread, 2021) (checked Oct 28, 2026)
- HP Community: Stuck in Preparing Automatic Repair loop (forum thread) (checked Oct 28, 2026)