When Windows detects that it did not start up correctly — perhaps because it was shut down unexpectedly, experienced a crash, or encountered a damaged file — it automatically launches a built-in recovery tool called Automatic Repair. This tool runs before Windows loads and attempts to identify and fix whatever prevented the normal startup. In many cases it works silently and Windows simply starts up normally on the next attempt. However, if Windows cannot fix the problem on its own, the repair process gets stuck in a loop — repeatedly trying and failing to repair itself, cycling between the blue screen, a loading spinner, and sometimes a black screen, without ever reaching the Windows desktop. This is a known and solvable problem in the vast majority of cases, and it does not automatically mean your files are lost or that Windows needs to be reinstalled.
- The PC was shut down or lost power unexpectedly while Windows was writing to the drive
- A Windows Update did not complete successfully and left system files in a damaged state
- A recently installed driver or software made a change that Windows cannot recover from
- Corruption in the Boot Configuration Data — the file that tells Windows how to start up
- Corruption in critical Windows system files
- A failing or damaged hard drive or SSD causing read errors during the startup process
- A recently connected or disconnected piece of hardware that changed how Windows initialises
- A virus or malware that modified or deleted startup files
Before attempting any repairs, try these steps first. They are quick, carry no risk, and resolve a significant number of Automatic Repair loops without any further intervention.
-
1Wait — give it time. Leave the PC on the Preparing Automatic Repair screen for a full 15 to 20 minutes without touching it. It can appear completely frozen while still running diagnostic processes in the background. Many cases resolve themselves if given enough time.
-
2Disconnect all non-essential devices. Turn the PC off, then unplug everything that is not required for basic startup — USB drives, external hard drives, SD cards, printers, scanners, extra monitors, and any other peripherals. Leave only the keyboard, mouse, and main monitor connected. Then turn the PC back on and see if Windows starts normally. External devices can interfere with the boot process and trigger the repair loop.
-
3Perform a hard reset. Hold the power button until the PC shuts off completely. Wait 30 seconds. For laptops with a removable battery, remove it, hold the power button for 15 seconds, then reinsert the battery. Power the PC back on. This clears residual electrical state from the system and occasionally allows Windows to start normally on the next attempt.
-
4Access the Advanced Startup Options menu. If Windows loops back to the Automatic Repair screen on restart, you need to access the recovery environment. When the PC is starting up, watch for the Windows logo to appear, then immediately hold the power button to force a shutdown. Do this twice in a row. On the third startup attempt, Windows should automatically present the Advanced Startup Options screen — a blue menu with options including Troubleshoot, Continue, and Turn off your PC. This is your gateway to all the repair tools described in the steps below.
- Do NOT turn the PC off and on rapidly and repeatedly — this increases the risk of further corruption and does not help resolve the underlying problem.
- Do NOT choose Reset this PC or reinstall Windows as a first step — these options can result in the loss of your files and installed programs, and they are rarely necessary. Work through the repair steps in this guide before considering a reset.
- Do NOT assume your files are gone — the Automatic Repair loop is a Windows startup problem, not a data loss event. Your files are almost always still intact on the drive even when Windows cannot start.
- Do NOT attempt repairs if your hard drive is making unusual clicking or grinding sounds — this indicates a hardware fault that requires professional attention before any software repair is attempted.
- Do NOT skip steps or jump ahead — the repair steps in this guide are arranged from least to most invasive. Working through them in order gives you the best chance of resolving the problem without affecting your files.
All of the following steps are accessed through the Advanced Startup Options menu described in Act ASAP Step 4 above. From that menu, select Troubleshoot to begin.
-
1Use System Restore to return Windows to a point before the problem began.
From the Advanced Startup Options menu, go to Troubleshoot > Advanced options > System Restore. Windows will present a list of restore points — snapshots of your system configuration saved automatically before updates, driver installations, and other significant changes. Select the most recent restore point from before the problem started and follow the on-screen instructions to apply it. System Restore does not affect your personal files — it only reverses changes to Windows settings, drivers, and system files. This is the safest and most effective first repair option and resolves a large proportion of Automatic Repair loops caused by a bad update or driver change. -
2Run Startup Repair.
From the Advanced Startup Options menu, go to Troubleshoot > Advanced options > Startup Repair. This tool scans for and repairs problems with the files Windows needs to start up — including the boot configuration, the bootloader, and related system files. Select your Windows account if prompted, enter your password if required, and allow the repair to run to completion. This can take anywhere from a few minutes to over half an hour. Do not interrupt it. Once finished, the PC will restart and attempt to boot normally. -
3Rebuild the Boot Configuration Data using Command Prompt.
If Startup Repair did not resolve the issue, the Boot Configuration Data — the file that tells Windows how to load — may be corrupted. This can be rebuilt manually. From the Advanced Startup Options menu, go to Troubleshoot > Advanced options > Command Prompt. In the Command Prompt window, type each of the following commands one at a time, pressing Enter after each and waiting for each to complete before typing the next:bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcdIf the
bootrec /fixbootcommand returns an “Access is denied” message, type the following command first and then repeat the sequence:bootsect /nt60 sys /mbrOnce all commands have completed, type
exitand press Enter to close the Command Prompt. Restart the PC and check whether Windows loads normally. -
4Run a System File Check using Command Prompt.
Corrupted Windows system files are a common cause of the Automatic Repair loop. The System File Checker scans all protected Windows files and replaces any that are damaged with a correct version. From the Advanced Startup Options Command Prompt, type the following command and press Enter:sfc /scannow /offbootdir=C:\ /offwindir=C:\WindowsThis version of the command is used when running from outside Windows. Allow it to complete fully — it may take 20 to 30 minutes. Once finished, restart the PC and test whether Windows loads normally.
-
5Run a disk health check using Command Prompt.
If Windows is still not starting, a fault on the hard drive or SSD may be preventing recovery. From the Advanced Startup Options Command Prompt, type the following command and press Enter:chkdsk C: /f /r /xThis scans the Windows drive for errors and bad sectors and attempts to repair them. This process can take a considerable amount of time — sometimes several hours on a large or heavily used drive. Allow it to complete without interruption. Once finished, restart and check whether Windows loads. If chkdsk reports a large number of bad sectors, the drive may be failing and professional advice is recommended.
-
6Disable Automatic Repair to break the loop and boot into Windows.
In some cases, Windows gets caught in the Automatic Repair loop not because of a serious fault, but because the repair tool itself is preventing startup. Temporarily disabling it can allow Windows to start normally so that repairs can be made from within the operating system. From the Advanced Startup Options Command Prompt, type the following command and press Enter:bcdedit /set {default} recoveryenabled NoRestart the PC. If Windows starts successfully, run a full Windows Update, check for driver issues in Device Manager, and then re-enable the recovery tool by opening Command Prompt as administrator from within Windows and typing:
bcdedit /set {default} recoveryenabled Yes -
7Use System Image Recovery if you have a backup image.
If you previously created a full system image backup of your Windows installation, you can restore it from the Advanced Startup Options menu by going to Troubleshoot > Advanced options > System Image Recovery. This restores your entire Windows installation to the state it was in when the image was created. Any changes made after the image was taken — including files saved after that date — will not be included in the restored version. If you do not have a system image, skip this step. -
8Reset Windows while keeping your files — as a last resort.
If none of the above steps have resolved the problem, Windows can be reset to a clean state while preserving your personal files. From the Advanced Startup Options menu, go to Troubleshoot > Reset this PC > Keep my files. This reinstalls Windows and removes installed programs and settings, but retains the files stored in your user folders such as Documents, Pictures, and Desktop. Read the on-screen information carefully before proceeding. This process takes a significant amount of time and the PC must remain powered on throughout. This option is only recommended after all other steps have been attempted without success.
copy C:\Users\YourName\Documents\importantfile.docx E:\ — where E is the drive letter of your USB drive. This ensures your files are safe regardless of the outcome of the repair process.
The Automatic Repair emergency is resolved when you see all of the following:
- Windows starts up and reaches the login screen or desktop without displaying the Automatic Repair screen
- The PC completes startup in a normal amount of time without hanging or looping
- You can log in and access your files, programs, and settings as normal
- No error messages appear during or immediately after startup
- Windows does not return to the Automatic Repair screen on the next restart
Once Windows is running again, take the following steps before resuming normal use. Run Windows Update to make sure all system files are current. Check Device Manager for any drivers showing a warning. Run a full scan using Windows Defender — built into Windows — to rule out malware as the original cause. And back up your important files to an external drive or another location as soon as possible, so that a future incident does not put your data at risk.