"Automatic Repair couldn't repair your PC" — the repair loop
Windows failed to boot, ran its own repair, that also failed, and it now repeats the cycle. The log it leaves behind usually names the cause.
What you see
"Preparing Automatic Repair", then "Diagnosing your PC", then the failure screen — on every boot. Startup Repair from the menu makes no difference.
What is actually wrong
A damaged boot configuration, a filesystem error on the system volume, a driver that fails during boot, or a pending update that cannot complete. The repair tool handles almost none of these on its own.
Codes and articles
Fixes (4)
Read the repair log before doing anything else
Always first. It costs twenty minutes and frequently names the exact file or driver.
From the failure screen, choose Advanced options → Troubleshoot → Advanced options → Command Prompt.
Find the Windows volume — inside WinRE it is usually not C:.
diskpartlist volumeexit
Open the log the repair tool writes.
notepad D:\Windows\System32\LogFiles\Srt\SrtTrail.txtThe last few lines name the root cause — a specific driver file, a corrupt registry hive, or a boot configuration problem. Working without it means guessing between four different repairs.
Also check the setup log if an update was involved.
notepad D:\Windows\Logs\CBS\CBS.logMatch what you find to the specific fix below rather than running all of them.
Roll back the update that cannot complete
It began after an update.
Identify the Windows volume as above, then list what is pending.
DISM /Image:D:\ /Get-Packages /Format:Table | findstr /i "Pending"Revert the pending transaction.
DISM /Image:D:\ /Cleanup-Image /RevertPendingActionsRemove the specific update if one is named and the revert alone does not clear it.
DISM /Image:D:\ /Remove-Package /PackageName:Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1234.1.5Naming the package removes only that update. The alternative — a system restore or a reset — undoes far more than the one thing that is broken.
Rename the pending operations file so the servicing stack does not retry on boot.
ren D:\Windows\WinSxS\pending.xml pending.oldRestart. The first boot will be slow.
DISM /Online /Cleanup-Image /ScanHealthRepair the filesystem and the boot record
After a power loss, or when the log names a disk or boot configuration error.
Check the disk first. A filesystem error makes every later repair fail confusingly.
chkdsk D: /f /rRebuild the boot configuration. Do this in order — each step depends on the previous one.
bootrec /fixmbrbootrec /fixbootbootrec /scanosbootrec /rebuildbcd
On a UEFI machine, bootrec /fixboot commonly returns Access is denied. Repair the EFI partition instead.
diskpartlist disksel disk 0list volsel vol 1assign letter=S:exitbcdboot D:\Windows /s S: /f UEFI
bcdboot writes a fresh boot store to the EFI system partition from the Windows install itself. It is the reliable UEFI equivalent of the whole bootrec sequence and it is what to reach for when fixboot is denied.
Restart and remove the assigned letter afterwards if you assigned one.
bcdedit /enumGet past the driver that is failing
New hardware or a driver update preceded it.
From the recovery menu choose Startup Settings → Restart, then Safe Mode.
If Safe Mode boots, the fault is a driver or service that does not load there. Remove the recently installed driver.
pnputil /enum-driversIf Safe Mode does not boot either, disable driver signature enforcement from the same menu and try again — that gets a machine in when a driver has been corrupted rather than merely misbehaving.
From WinRE, the offending driver can be removed offline once identified.
DISM /Image:D:\ /Get-Drivers /Format:TableDISM /Image:D:\ /Remove-Driver /Driver:oem12.inf
This works even when no mode boots. The driver package is removed from the offline image, so the next boot never loads it.
Restart normally and reinstall a correct version of the driver.
Related faults
Where this stops. This write-up was written and checked by hand. It says what each step changes, how to confirm it worked and how to reverse it, and anything destructive is flagged before you reach it. If it does not match what your machine is doing, search the Support Centre for the exact code or message — and when something needs a person, get in touch.