Step 1: Boot your computer into the Windows Recovery Environment (WinRE).
If your computer can boot normally, press Windows I to open Settings, go to Update & Security > Recovery, and click “Restart now” under Advanced startup. If your computer is unbootable, force restart it three times to enter WinRE.
Step 2: When the “Choose an option” screen appears, select “Troubleshoot” > “Advanced options” > “Command Prompt”.
Step 3: In the Command Prompt window, type the following command and press Enter:
bcdedit /set {default} recoveryenabled No
This command disables the automatic startup repair feature in Windows 10.
Step 4: Restart your computer.
After the restart, the automatic startup repair should be disabled, and you should be able to access Windows 10 again.
If you need to re-enable the automatic startup repair feature in the future, you can type the following command in the Command Prompt and press Enter:
bcdedit /set {default} recoveryenabled Yes
Alternative Method: Using System File Checker (SFC) and DISM Commands
If the above method doesn’t work or you encounter other issues, you can try using the System File Checker (SFC) and Deployment Image Servicing and Management (DISM) commands to repair Windows 10 files and settings.
Step 1: Open Command Prompt as an administrator in the Windows Recovery Environment.
Step 2: Type the following commands one by one, pressing Enter after each:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
The SFC command scans for and repairs corrupted system files, while the DISM command repairs the Windows image.
Step 3: Restart your computer and check if the automatic repair loop has been resolved.
If the issue persists, you may need to consider more advanced troubleshooting options, such as performing a system restore or a clean installation of Windows 10.