Fix Windows Automatic Repair Loop using Command Prompt

Posted by @Ivy

February 12, 2018

Suffered from Windows automatic repair loop? Try the following methods when you receive error message like automatic repair couldn't repair your pc or preparing automatic repair.

What is automatic repair?

In Windows 8/10, there comes with a new repair tool called Automatic Repair. It can detect the operating system startup problem. When the problem is detected, the automatic repair will start an automated, diagnostics-based troubleshooter. And the operation starts automatically without user intervention.

If the problem is severe and the automatic repair does not start automatically, you can create a recovery disk and use it to troubleshoot your computer.

Windows automatic repair loop and its cause

No matter what happens, there is always a cause. Computer stuck on automatic repair is not an exception. Here will list its types and reasons.

Types of automatic repair loop:

  • Windows stuck at a window with error message “automatic repair couldn’t repair your pc”

  • Windows automatic repair stuck on black screen with a message “preparing automatic repair”

  • Windows automatic repair loop without disc

Reasons for preparing automatic repair:

  • Windows do not shut down properly owing to a power cut, a crash, laptop battery out of charge.

  • You enable early launch anti-malware protection.

  • Your computer has corrupted files or bad drivers.

  • Your hard drive is corrupted or damaged.

  • Windows registry or registry setting is corrupted.

  • The device partition or osdevice partition value is not correct.

  • You plug into additional USB drive or other hard drives.

  • Windows Boot Manager was set as the first boot device.

According to reasons listed above, you may get that the simplest way is to start Windows normally. You can boot your computer and press F8 repeatedly to access Windows Boot Manager, then select Start Windows normally. If it does not work, you try the following ways one by one.

Fix Windows automatic repair loop using command prompt

In the following, you are required to run a certain command at the command prompt. Here are two ways to enter command prompt.

1. Use Boot Options Menu. You can restart your computer several times to access Boot Options Menu, and then select Troubleshoot > Advanced Options > Command Promptto open the command prompt window.

2. Use installation disc. You can insert your Windows installation CD/DVD, turn on your computer and press a key when you receive the message” Press any key to boot from CD or DVD. Then Press Shift + F10 to open the command prompt in Windows Setup Screen.

Delete corrupted file

Step 1. Open the log files and find out the corrupted files. You can type the following to find corrupted files in the command prompt.


Cd Windows System32LogFilesSrt


Take VMWare files as an example, you will see a message like Boot critical file c:windowssystem32driversvsock.sys is corrupt. If you receive other messages, you need to search and ensure the type of problematic file. 

Step 2: Delete the corrupted files. You can type the following and press Enter.

cd c:windowssystem32drivers

del vsock.sys

Delete File Command Prompt

  • Rebuild BCD and run Chkdsk

Step 1. Rebuild BCD and repair MBR. You can type the command below.

bootrec.exe /fixmbr

bootrec.exe /fixboot

bootrec.exe /rebuildbcd

Rebuild BCD


/fixmbr writes a new MBR (Master Boot Record) to the system partition

/fixboot writes a new boot sector onto the system partition

/rebuildbcd scans all disks for Windows installations and provides a choice of which entries to add to the BCD store

Step 2. Run Chkdsk. Type the following command with partition driver letter.

chkdsk/r c:

Note: Running Chkdsk can check and repair the hard drive filesystem corruption.

step 3. Restart your computer and see if this works.

  • Restore Windows Registry or Registry settings using RegBack

Step 1. Ensure your system drive. You can directly typedir c:in the command prompt. If you see Program Files, Program Files(x86), Users, Windows, it's your system drive. If not, try the next drive letter.

Step 2. Restore Windows registry from RegBack using the following command. if you are asked to overwrite files, type All and pressEnter.

copy d:windowssystem32configRegBack* d:windowssystem32config

Restore Windows Registry

Step 3. Exit the command prompt. You can type exit and press Enter.

Step 4. Restart your computer and check if the issue has been solved.

Other ways to fix Windows 10 automatic repair failed.

  • Remove and put back the laptop battery

  • Remove the laptop RAM memory

  • Disconnect and reconnect hard drive

  • Unplug addition USB drive or hard drive.

  • Check the boot priority in BIOS and change it. Sometimes, Windows Boot Manager will be set as the first boot device. You need to set priority to the bootable hard drive.

  • Disable early launch anti-malware protection. You can select Troubleshoot > Advanced options > Startup Settings in Boot menu and choose Restart, then elect Disable early launch anti-malware protection. At last, restart and see if it works.

  • Replace the bad driver. You can enable safe mode with networking and download the latest driver first. Then, restore the health of your driver with DISM /Online /Cleanup-Image /RestoreHealthcommand. At last, restart your computer and install the driver.

This article is also applied to dell automatic repair loop windows 10, ASUS automatic repair loop windows 10, HP automatic repair loop windows 10, etc.

How to protect your computer?

No one can promise that your computer will work forever. Thus, there is a need to take some prevention measures. Backup is one of the best ways. It can restore your system or files, especially when a serious error occurs on your computer.

To create a backup, you need an easy-to-use backup and restore software. I recommend you free AOMEI Backupper. You can backup your system, entire disk and files.

Aside by the basic function, it still offers you more useful secondary functions. You can compress your backup with Normal or High compression level. You can enable email notification and get the operation is taken or not. You can enjoy incremental backup and differential backup not just full backup. Also, you can create a backup at a given time and date, including Daily, Weekly, Monthly.

Step 1.  Download free AOMEI Backupper and open it.

Step 2. Click Backup > System Backup. You still can select Disk Backup, Partition Backup, File Backup.

System Backup

Step 3. In this window, select a path to save your backup. It will select a path automatically. If you want to save your backup to a different location, you can click Step 2.


Note: AOMEI Backupper will select system partition and other system related partition by default. Thus, you do not need to manually select which partition to backup.

Step 4. Set up settings if needed.


Step 5. Click Start Backup to run the pending operating.

Windows automatic repair loop is one of the most frustrating things, which does not allow you to go to your computer. You try the above solutions to work around this issue. However, you cannot promise that your computer will work all the time.

To protect your computer, you need to create one or more system backup. With a backup in hand, you can restore system image backup at any time.