The SrtTrail.txt message is Windows telling you its automatic repair gave up. You’ll see “Automatic Repair couldn’t repair your PC” with a log file path pointing at C:\Windows\System32\LogFiles\Srt\SrtTrail.txt — and then every reboot lands you back on the same screen. It’s a loop, and the way out is to fix the boot problem by hand.

The good news: the underlying causes are few and well-understood — a damaged boot configuration, corrupt system files, a bad update, or disk errors. Work through them in order and the loop breaks.

Why this happens

  • Corrupted Boot Configuration Data (BCD): The BCD tells Windows how to start. Failed updates, partitioning tools, or disk errors damage it, and Automatic Repair often can’t rebuild it on its own.
  • Corrupt system files in the boot path: Damage to the kernel or boot drivers means Windows can’t finish starting no matter how many times repair tries.
  • A Windows update that broke the boot: Interrupted or buggy updates leave boot files mismatched — the classic trigger for landing in Automatic Repair.
  • Disk errors or a failing drive: Bad sectors in the system partition corrupt boot files as they’re read. Loops that appear gradually and get worse point here.
  • Recently installed incompatible drivers: A storage or chipset driver that loads at boot and crashes immediately will send every boot into recovery.
  • Damaged EFI system partition: On UEFI systems, corruption in the small EFI partition breaks the boot chain before Windows even starts loading.

How to fix it

Work through these in order — each targets one layer of the boot process.

Fix 1: Break the loop and reach Advanced options

You need the recovery menu, not another Automatic Repair attempt.

  1. On the “Automatic Repair couldn’t repair your PC” screen, click Advanced options (not Restart — Restart just loops again).
  2. If you only see a blue screen without that button, force WinRE: power off during the Windows logo three times in a row; the fourth boot enters recovery.
  3. Choose Troubleshoot > Advanced options. Everything below starts from here.

Fix 2: Try Startup Repair once more, properly

It failed before, but run it once from the menu while you’re here — occasionally it succeeds on a second attempt after a clean boot into WinRE.

  1. Select Startup Repair, choose your account, enter your password.
  2. Let it run fully (5–15 minutes). If it fails again, continue — the manual steps below do what it can’t.

Fix 3: Rebuild the BCD and boot files

The highest-success manual fix for this loop. Takes two minutes.

  1. From Advanced options, open Command Prompt.
  2. Run these commands in order:
    • bootrec /fixmbr
    • bootrec /fixboot
    • bootrec /scanos
    • bootrec /rebuildbcd
  3. If bootrec /fixboot returns “Access denied,” run bootsect /nt60 sys first, then retry.
  4. When rebuildbcd finds your Windows installation, type Y to add it to the boot list.
  5. For UEFI systems, if the above doesn’t work, try the EFI rebuild:
    • diskpart > list volume — find the FAT32 EFI partition, note its letter (assign one with assign letter=Z: if needed), then exit
    • bcdboot C:\Windows /s Z: /f UEFI (adjust C: to your Windows drive)
  6. Type exit and choose Continue to reboot.

Fix 4: Run SFC and CHKDSK offline from recovery

Corrupt files and disk errors are the next layer down.

  1. From Advanced options > Command Prompt, find your Windows drive letter: run diskpart, list volume, exit — in WinRE it’s often D: or E:.
  2. Run sfc /scannow /offbootdir=D:\ /offwindir=D:\Windows (use your actual letter).
  3. Then run chkdsk D: /f /r to find and repair disk errors. The /r pass takes a long time on big drives — let it finish.
  4. Restart and test.

Fix 5: Uninstall the latest quality or feature update

If the loop started right after an update, remove it from recovery.

  1. From Advanced options, choose Uninstall Updates.
  2. Try Uninstall latest quality update first — it’s the smaller, safer removal.
  3. If the loop persists, go back and try Uninstall latest feature update.
  4. Restart after each uninstall to test.

The 24H2 SrtTrail.txt guide has build-specific notes if you’re on that version.

Fix 6: Use System Restore to roll back

A restore point from before the loop began undoes whatever broke the boot.

  1. From Advanced options > System Restore, pick a restore point dated before the problem started.
  2. Confirm and let it run — it reverts system files, drivers, and registry without touching personal files.
  3. If no restore points exist, continue to Fix 7. (After you’re back up, turn System Protection on — future-you will be grateful.)

Fix 7: Repair install or reset as the last resort

When the boot damage is too deep for targeted repair, reinstall Windows over itself.

  1. On another PC, create Windows 11 installation media from Microsoft’s download page .
  2. Boot your laptop from the USB, choose your language, then click Repair your computer (bottom-left) — not Install.
  3. From there you get the same Advanced options; if you haven’t tried them from this media yet, do so — sometimes fresh media succeeds where the onboard recovery fails.
  4. As the final option: Troubleshoot > Reset this PC > Keep my files. This reinstalls Windows, removes apps and drivers, but preserves personal files.

If you’re on a Lenovo and the loop keeps returning after these fixes, the Lenovo automatic repair loop guide covers model-specific quirks.

Closing

SrtTrail.txt isn’t the problem — it’s the autopsy report. The problem is whatever broke your boot, and for most people it’s a damaged BCD (Fix 3) or corrupt system files (Fix 4). Those two fixes resolve the large majority of these loops in under an hour, with files intact. Save the reset for last, turn on System Protection once you’re back in, and the next boot failure will be a five-minute restore instead of a crisis.

Frequently asked questions

What is the SrtTrail.txt error?
It’s not a virus or a specific bug — it’s the log file Windows creates when Automatic Repair fails. Seeing ‘SrtTrail.txt’ on the blue screen just means startup repair tried and couldn’t fix the boot problem. The real cause is whatever broke your boot: corrupt BCD, bad drivers, disk errors, or failed updates.
Why is my PC stuck in an Automatic Repair loop?
Windows detects a boot failure, launches Automatic Repair, the repair fails, and the next boot fails the same way — an endless loop. Breaking it means fixing the underlying boot problem manually from the recovery command prompt.
Will I lose my files?
The repair steps (BCD rebuild, SFC, DISM, System Restore) don’t touch personal files. Only a full reset or clean install risks data, and even the reset offers a keep-my-files option. Back up first if the files are irreplaceable.
How long does the fix take?
The BCD rebuild and SFC scan take 15–30 minutes. A CHKDSK on a large drive can add an hour or more. Most people break the loop within an hour; a repair install adds another 30–60 minutes if it comes to that.