In this guide
- Why does Windows say “Preparing Automatic Repair”?
- Before you start: protect your files and find your BitLocker key
- 1. Wait, then do a hard restart
- 2. Get to Advanced options
- 3. Uninstall the latest update
- 4. Use System Restore
- 5. Start in Safe Mode and undo recent changes
- 6. Check the disk and system files from Command Prompt
- 7. Read the repair log to find the cause
- 8. Stop the loop so you can see the real error
- 9. Reset this PC, keeping your files
- If it doesn’t work
- FAQ
If Windows is stuck on Preparing Automatic Repair, first give it 15-30 minutes and disconnect any USB devices. If it keeps looping, open Advanced options on the “Automatic Repair couldn’t repair your PC” screen and work through the fixes in order: uninstall the latest update, System Restore, Safe Mode, a disk and system file check from Command Prompt, and finally Reset this PC with Keep my files. Most loops are caused by a bad update, a damaged system file or a driver, not a dead PC.
This guide is part of our boot series. If your PC doesn’t reach the Windows logo at all, start with the PC won’t boot checklist.

Why does Windows say “Preparing Automatic Repair”?
Windows has a built-in recovery system called the Windows Recovery Environment (WinRE). Microsoft’s documentation says it starts automatically after two failed attempts to start Windows in a row, or after two unexpected shutdowns or restarts within two minutes of start-up. Automatic Repair (also called Startup Repair) then checks the boot files and settings.
You get stuck when:
- Automatic Repair can’t find or fix the real problem, and Windows fails again, so the cycle repeats (the automatic repair loop)
- the screen goes black after “Preparing Automatic Repair” and nothing happens
- Windows says “Diagnosing your PC” for a long time, then “Automatic Repair couldn’t repair your PC”
Common causes are a failed Windows update, a new driver or program, damaged system files, a failing drive, and a sudden power cut.
Before you start: protect your files and find your BitLocker key
- The fixes below keep your personal files, except a full reset or clean install, which are clearly marked.
- If your files aren’t backed up, you can copy them from the recovery environment before trying bigger fixes. See how to save your files from a PC that won’t boot.
- On many laptops, the drive is encrypted with BitLocker. Several tools will ask for the 48-digit recovery key. Microsoft’s Find your BitLocker recovery key page explains where it’s stored (usually your Microsoft account).
1. Wait, then do a hard restart
The first run of Automatic Repair can take a while, especially on an older hard drive. Leave it for 15-30 minutes if the drive light is flickering.
If nothing changes:
- Unplug USB sticks, external drives, printers, docks and memory cards.
- Hold the power button for about 10 seconds until the PC switches off.
- Laptop: unplug the charger, hold power for 15 seconds, reconnect the charger.
- Switch on again.
A plugged-in drive or device sometimes confuses the start-up process; removing it can be enough.
2. Get to Advanced options
When the Automatic Repair screen says “Your PC did not start correctly” or “Automatic Repair couldn’t repair your PC”, click Advanced options, then Troubleshoot → Advanced options.

If you only get a black screen and never see this button, you can’t use the built-in recovery. Make a Windows installation USB on another PC with Microsoft’s Media Creation Tool, boot from it, and select Repair my PC (older media: Repair your computer). You’ll reach the same menu. The one-time boot menu key depends on your PC; see the BIOS and boot menu key table.
3. Uninstall the latest update
If the loop started after Windows Update, this is the most likely fix.
- Go to Troubleshoot → Advanced options → Uninstall Updates.
- Choose Uninstall latest quality update first and restart.
- If that doesn’t help, return and choose Uninstall latest feature update.
Your files and apps stay in place. If an update was interrupted rather than installed, see also Windows Update stuck.
4. Use System Restore
System Restore rolls back Windows system files, drivers and settings to a restore point, without changing your personal files.
- Go to Troubleshoot → Advanced options → System Restore.
- Pick your account if asked, then choose a restore point dated before the problem started.
- Click Finish and wait.
If it says no restore points exist, System Protection was off; move on.
5. Start in Safe Mode and undo recent changes
Safe Mode starts Windows with only basic drivers, which often gets past the loop.
- Go to Troubleshoot → Advanced options → Startup Settings → Restart.
- After the restart, press 4 (or F4) for Safe Mode, or 5 (or F5) for Safe Mode with Networking.

If Windows starts in Safe Mode, uninstall the last program or driver you added (in Settings → Apps → Installed apps, or Device Manager for drivers), especially antivirus, graphics drivers or disk tools. Then restart normally.
6. Check the disk and system files from Command Prompt
Open Troubleshoot → Advanced options → Command Prompt. First find your Windows drive letter, because in recovery it isn’t always C:
dir C:\Windows
If that says “File Not Found”, try dir D:\Windows, and use whichever letter works in the commands below.
Check the disk for errors:
chkdsk C: /f
Add /r (chkdsk C: /f /r) to scan for bad sectors as well; it takes much longer. If the drive is old or making noises, copy your files off first.
Repair Windows system files with the offline version of System File Checker, the form Microsoft gives for the recovery environment:
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
Restart and see if the loop has stopped. If you want to know when to use SFC and when DISM, see SFC vs DISM.

7. Read the repair log to find the cause
Automatic Repair saves what it found in a log file. In Command Prompt, type notepad and press Enter, choose File → Open, set Files of type to All files, and open:
C:\Windows\System32\LogFiles\Srt\SrtTrail.txt
Look for lines like “Root cause found”. A named driver file (ending in .sys) points to a driver to remove in Safe Mode; “Boot configuration corrupted” points to the boot-file repair in Operating system not found; a disk error points to the drive.
8. Stop the loop so you can see the real error
Microsoft’s boot troubleshooting guide gives this command to stop the PC returning to the recovery screen every time:
bcdedit /set {default} recoveryenabled no
This doesn’t fix the cause. Windows will try to start normally and may then show a blue screen with a stop code you can look up (see how to find the cause of a blue screen). If it shows INACCESSIBLE_BOOT_DEVICE or UNMOUNTABLE_BOOT_VOLUME, use our inaccessible boot device or unmountable boot volume guides. To turn automatic recovery back on later, run the same command with yes instead of no.
9. Reset this PC, keeping your files
If nothing else works and the drive is healthy:
- Go to Troubleshoot → Reset this PC.
- Choose Keep my files. Windows is reinstalled; your personal files in your user folders are kept, but installed apps and settings are removed.
- Choose Cloud download (needs internet) or Local reinstall.
Remove everything erases all files. Only choose it if your data is already backed up.
If it doesn’t work
- The loop continues even after a reset: suspect hardware. Run your PC maker’s diagnostics (often F2 on HP laptops or from Dell’s F12 menu) and test the memory and drive.
- Every tool asks for a BitLocker key you don’t have: without the key, the drive can’t be read or repaired. Check every Microsoft account the PC may have used, or ask the person or organisation that set it up.
- The PC restarts before even reaching Automatic Repair: see the Windows boot loop guide.
- You get “BOOTMGR is missing” or “No bootable device” instead: those are firmware-level errors, covered in BOOTMGR is missing and No bootable device found.
FAQ
How long does Preparing Automatic Repair take?
Usually a few minutes. On an older hard drive or after a big update it can take longer. If the drive light is active, wait up to 30 minutes. If the screen is black with no activity, do a hard restart.
How do I get out of the automatic repair loop?
Click Advanced options on the repair screen and try, in order: Uninstall Updates, System Restore, Safe Mode, then chkdsk and an offline sfc scan from Command Prompt. If nothing helps, use Reset this PC with Keep my files.
Will Automatic Repair delete my files?
No. Automatic Repair, Uninstall Updates, System Restore, Safe Mode and the command-line checks leave your personal files alone. Only Reset this PC with Remove everything or a clean install erases them.
Why is my laptop stuck on a black screen after “Preparing Automatic Repair”?
Often it is still working; give it time. If there is no drive activity after 20-30 minutes, force it off, unplug external devices and the charger, drain power and try again. If it repeats, boot from a Windows USB and choose Repair my PC.
What does “Automatic Repair couldn’t repair your PC” mean?
It means Startup Repair ran but couldn’t find or fix the cause. It isn’t the end: use the Advanced options button to try the other fixes, and read the SrtTrail.txt log to see what it found.




