
Table of Contents
You switch on your PC and instead of the desktop you get “Preparing Automatic Repair”, then “Diagnosing your PC”. Then a blue screen says “Automatic Repair couldn’t repair your PC”. You click Restart and it happens all over again.
It looks alarming, but there are two things worth knowing before you start:
- Your files are almost always still on the drive. The loop means Windows cannot start, not that your data has gone.
- The blue screen with the Advanced options button is the Windows Recovery Environment. It contains most of the tools you need to fix this yourself.
Here is the order I work through, from the quick, harmless fixes to the ones that change more.
Why Windows Gets Stuck in This Loop
When Windows fails to start several times in a row, it automatically runs Startup Repair. If Startup Repair cannot find or fix the problem, Windows tries again on the next start, and you end up in a loop. The usual causes are:
- A Windows update that failed or went wrong partway through.
- Corrupted system or boot files, often after a power cut or forced shutdown during an update.
- A new driver, especially for graphics, storage or security software.
- A problem with the drive itself: errors on the file system, or a failing SSD or hard drive.
- A USB drive, external disk or dock confusing the startup process.
- A BIOS or firmware update, or a changed BIOS setting.
You do not need to know the cause to start fixing it. The steps below cover them in order of likelihood.
Step 1: Unplug Everything and Do a Hard Restart
Start with the free, harmless one.
- Hold the power button for about 10 seconds until the PC switches off.
- Unplug everything that is not needed: USB drives, external hard drives, memory cards, printers, docks, and any USB hubs. Leave only the keyboard, mouse and screen.
- On a laptop, unplug the charger too. On a desktop, switch off at the wall and wait a minute.
- Plug the charger back in and switch the PC on.
A surprising number of loops come from the PC trying to start from a USB drive or external disk. If Windows starts normally, plug your devices back in one at a time.
Step 2: Get to Advanced Options
Everything else happens from the Windows Recovery Environment. When you see “Automatic Repair couldn’t repair your PC”, click Advanced options, then Troubleshoot, then Advanced options again. You will see a list of tools including Startup Repair, Uninstall Updates, System Restore, Startup Settings and Command Prompt.
Your PC may never reach that screen and just spin on “Preparing Automatic Repair”. If so, force it there. Switch the PC on, and as soon as the Windows or manufacturer logo appears, hold the power button to switch it off. Do this two or three times. On the next start, Windows should open the recovery environment.
If Your Keyboard or Mouse Does Not Work on This Screen
In October 2025, a Windows 11 update briefly stopped USB keyboards and mice working inside the recovery environment while they still worked in Windows. Microsoft fixed it within days, so it is unlikely to affect you now. Still, if your keyboard is dead only on this screen, it is a known kind of bug rather than a broken keyboard. A touchscreen, if your laptop has one, can get you through the menus. Our guide to laptop keyboard not working covers it in more detail.
If It Asks for a BitLocker Recovery Key
Many laptops encrypt the drive with BitLocker (or Device Encryption) by default. When you open some recovery tools, Windows asks for the 48-digit recovery key. Most people can find it at aka.ms/myrecoverykey by signing in with their Microsoft account on another device. Our guide to the BitLocker recovery key screen explains where else it might be. Do not reset or wipe anything until you have this key, because without it some fixes and file recovery become impossible.
Step 3: Try Quick Machine Recovery (Windows 11)
On up-to-date Windows 11 PCs, there is a newer option called Quick machine recovery. When many PCs are hit by the same startup problem, such as a bad update, Microsoft can publish a fix that the recovery environment downloads and applies automatically.
It may already have tried this on its own. To run it manually, go to Troubleshoot > Advanced options > Quick machine recovery. The PC needs an internet connection, through an Ethernet cable or a standard (WPA or WPA2) Wi-Fi network. If a fix exists, it is applied and the PC restarts. If not, you simply carry on with the steps below.
Step 4: Run Startup Repair Once
From Advanced options, choose Startup Repair. Let it run once. If it says it could not repair your PC, do not keep running it over and over; it is the same tool that has already been failing in the loop. Move on.
Step 5: Uninstall the Latest Update
If the loop started right after Windows installed updates, this is the most likely fix.
- Go to Troubleshoot > Advanced options > Uninstall Updates.
- Choose Uninstall latest quality update first. This removes the most recent monthly update.
- Restart and see if Windows starts.
- If it does not, go back and choose Uninstall latest feature update, which rolls back a major Windows version upgrade.
Update-related boot loops are not just theory. In early 2026, Microsoft confirmed that some Windows 11 PCs failed to start after its January security update. Most were machines left in a bad state by a failed December 2025 update, and Microsoft fixed it in a later update. When this kind of thing happens, uninstalling the latest update from the recovery environment is often the quickest way back.
Once Windows is working again, pause updates for a week (Settings > Windows Update > Pause updates) so the same update does not install again before Microsoft fixes it. Our guide on Windows Update stuck or failing covers what to do next.
Step 6: Use System Restore
System Restore takes Windows back to an earlier snapshot, called a restore point, from before the problem started. It does not touch your documents, photos or other personal files, but it removes apps, drivers and updates installed after that point.
- Go to Troubleshoot > Advanced options > System Restore.
- Choose your account and enter your password if asked.
- Pick a restore point from a day or two before the loop started, and follow the steps.
If it says there are no restore points, System Restore was turned off on your PC. That is common, so move on.
Step 7: Try Safe Mode
Safe Mode starts Windows with only the basic drivers it needs. If Windows can start in Safe Mode, the problem is almost certainly a driver or app, not the core of Windows.
- Go to Troubleshoot > Advanced options > Startup Settings > Restart.
- When the list appears, press 4 for Safe Mode, or 5 for Safe Mode with Networking.
If Windows starts:
- Uninstall anything you installed just before the problem began: a new antivirus, a graphics driver, a game anti-cheat tool, or system utilities.
- In Device Manager, right-click a recently updated driver and choose Properties > Driver > Roll Back Driver, if the option is available.
- Open Command Prompt as administrator and run sfc /scannow to repair Windows system files.
- Then restart normally.
Step 8: Repair the Drive and System Files From Command Prompt
Safe Mode may not work either. If so, the Command Prompt in the recovery environment can repair the most common causes: file system errors, damaged system files and damaged startup files. This sounds technical, but you only need to type a few lines exactly.
Go to Troubleshoot > Advanced options > Command Prompt.
Find Your Windows Drive Letter
In the recovery environment, your Windows drive is not always C:. Type this and press Enter:
bcdedit
Look for the line that says “osdevice partition=” followed by a letter. That is your Windows drive. The commands below use C:, so replace it with your letter if it is different. If your drive is encrypted with BitLocker, you may need to unlock it first with:
manage-bde -unlock C: -RecoveryPassword YOUR-48-DIGIT-KEY
Check the Drive for Errors
chkdsk C: /f
This finds and fixes file system errors. It can take a while on a large drive. If it reports bad sectors or lots of errors, your drive may be failing; see “When It Is a Hardware Problem” below.
Repair Windows System Files
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
This checks Windows’ own files and replaces damaged ones. The extra parts tell it to repair your installed Windows rather than the recovery environment.
Rebuild the Startup Files
bcdboot C:\Windows
This rebuilds the files your PC uses to start Windows. Older guides recommend bootrec /fixmbr, bootrec /fixboot and bootrec /rebuildbcd. Those can help on some PCs, but on most modern PCs bootrec /fixboot fails with “Access is denied”, and bcdboot does the same job more reliably.
Type exit, choose Continue, and see if Windows starts.
One Command to Avoid
Some guides suggest turning off Automatic Repair with a bcdedit command. That does not fix anything; it only stops Windows from telling you there is a problem. You may end up with a blank screen or a crash loop instead. Leave it alone.
Step 9: Get Your Files Off Before You Reset
If none of the repairs worked, the next steps involve resetting Windows. “Keep my files” is designed to keep your personal files, but before you rely on it, copy anything irreplaceable to a USB drive if you can. There are two ways:
- The Notepad trick:
- In Command Prompt, type notepad and press Enter.
- In Notepad, choose File > Open and change “Files of type” to All Files. You can now browse your drive.
- Plug in a USB drive, right-click the files or folders you want, choose Copy, and paste them onto the USB drive.
It is clunky, but it works without any extra tools.
- Remove the drive: on a desktop, or a laptop where the drive is easy to reach, you or a repair shop can take the drive out and connect it to another PC to copy files off. If the drive is encrypted with BitLocker, you will need the recovery key to read it.
If your files are already in OneDrive, Google Drive or another cloud service, they are safe, and you can skip this.
Step 10: Reset This PC (Keep My Files)
- Go to Troubleshoot > Reset this PC.
- Choose Keep my files. This reinstalls Windows but keeps the files in your user folders.
- Choose Cloud download (downloads a fresh copy of Windows, needs internet) or Local reinstall (uses files already on the PC). If one fails, try the other.
You will need to reinstall your apps afterwards, and some settings will be lost, but your documents, photos and other personal files should still be there.
Step 11: Use a Windows Installation USB
Even Reset this PC can fail, or you may not be able to reach the recovery environment at all. In that case, make a Windows installation USB on another computer with Microsoft’s Media Creation Tool (search “Download Windows 11” on Microsoft’s site). You need a USB drive of at least 8GB.
Start your PC from the USB. Usually you press F12, F11, Esc or F9 at startup to open the boot menu. Then:
- Choose your language, then Repair your computer instead of Install. This gives you a fresh copy of the recovery tools, which can work when the PC’s own copy is damaged.
- If repairs still fail, use the same USB to reinstall Windows. A clean install erases the drive, so only do this after you have copied your files off or accepted that they are backed up elsewhere.
When It Is a Hardware Problem
The hardware is likely at fault if you see any of these:
- chkdsk reports bad sectors.
- The drive does not appear in the BIOS.
- The PC freezes or crashes in different places.
- A fresh Windows install also fails.
The usual suspects are a failing SSD or hard drive, or faulty memory.
Most PC makers have built-in hardware tests you can run without Windows:
- Dell: on many models, press F12 at startup and choose Diagnostics.
- HP: press F2 or Esc at startup for HP PC Hardware Diagnostics.
- Lenovo: use Lenovo Diagnostics.
Other brands have their own. If the drive fails, it needs replacing. A repair shop may be able to recover your files from it, ideally before you try anything else.
If your PC is under warranty, contact the manufacturer before opening it.
If the PC powers on but you never see the logo or anything on screen, that is a different problem; see our guide to when a laptop turns on but the screen stays black.
Quick Answers
How do I get out of the Automatic Repair loop?
Unplug USB drives and other devices and do a hard restart first. If that does not work, open Advanced options from the “Automatic Repair couldn’t repair your PC” screen and try these in order:
- Quick machine recovery
- Startup Repair, once
- Uninstall Updates
- System Restore
- Safe Mode
- The Command Prompt repairs
Reset this PC with Keep my files comes last.
Will I lose my files if Windows is stuck in Automatic Repair?
Usually not. The loop means Windows cannot start, but your files are normally still on the drive. Uninstalling updates, System Restore and Safe Mode do not touch personal files, and Reset this PC with Keep my files is designed to keep them. Copy important files off first if you can.
Why does my PC say “Preparing Automatic Repair” every time?
Windows runs Automatic Repair after it fails to start several times. Common causes are a failed Windows update, corrupted system or boot files, a bad driver, a problem with the drive, or a USB device interfering with startup.
How do I open Advanced options if my PC does not show them?
Switch the PC on and, when the logo appears, hold the power button to switch it off. Repeat two or three times. On the next start, Windows should open the recovery environment with Advanced options.
Why does the recovery screen ask for a BitLocker key?
Your drive is encrypted with BitLocker or Device Encryption. You can usually find the 48-digit key at aka.ms/myrecoverykey by signing in to your Microsoft account on another device.
Does Startup Repair ever work?
Sometimes, especially for simple boot file problems. But it often fails on the cause of a loop, because it is the same tool that has already been running. Run it once, then move on to uninstalling updates, System Restore and the Command Prompt repairs.
What is Quick machine recovery?
It is a Windows 11 recovery feature that connects to the internet from the recovery environment and downloads fixes from Microsoft for widespread startup problems, such as a bad update. It runs automatically when available, and you can start it from Troubleshoot > Advanced options.
Should I disable Automatic Repair?
No. Turning it off with a command only hides the problem. It does not fix whatever is stopping Windows from starting.








