Fix boot Windows 10 Command Prompt

When you encounter problems that you can’t solve, or when your computer can’t even boot into Windows to perform any fix, here’s a guide on how to startup repair Windows 10 or Windows 11 using Command Prompt from Safe mode or via Windows Recovery.

If in any situation that you can only boot into safe mode with command prompt, or to the Windows Recovery Environment, there is still a chance to repair Windows 10/11 using the command prompt tool, before you go all in to reset or reinstall your Windows.

Startup Repair Windows 10/11 using Command Prompt

Before we start talking about what you can do in command prompt, we will have to show you how to enter safe mode with command prompt on Windows 11/10, or access to command prompt from Windows Recovery Environment. You may skip this step if you already know how to open command prompt without booting into Windows.

How to enter Windows 10/11 safe mode with command prompt

If you still have access to your Windows 10/11, you can enter safe mode by Shift clicking the restart button from start menu. Then select (6) from the Startup Settings to boot into safe mode with command prompt on next restart.

If you have no access to your Windows 10/11 at all, you need to do this: Hold and press on the power switch on your computer casing for about 5 seconds until your computer is completely turned off. Power it on again. When it starts loading the Windows 10 or Windows 11 logo, hold and press the power switch again to force another shutdown. Repeat this for 3-4 times. When Windows detects too many failed startup, it will automatically boot into Windows Recovery.

Fix boot Windows 10 Command Prompt

When you are in Windows Recovery, select Troubleshoot > Advanced options > Startup Settings. From there, press the 6 key to boot into Windows safe mode with command prompt on next restart.

How to open Command Prompt from Windows 10/11 Recovery

To enter Windows Recovery if you’re still able to access to Windows 10/11, go to start menu > Settings > Update & Security > Recovery > Advanced startup. Click on Restart now to boot into Windows Recovery.

Fix boot Windows 10 Command Prompt

If you can’t access to your Windows in the first place, follow the steps mentioned above to repeat force shutdown your computer in order to force boot your PC into Windows Recovery Environment.

Once you’re there, select Troubleshoot > Advanced options > Command Prompt. You will then be able to execute commands directly from the Windows Recovery CMD.

Fix boot Windows 10 Command Prompt

It’s worth noting that if you do have a recovery drive created prior to the problem, you can set your BIOS to boot the recovery drive to enter Windows Recovery Environment.

Repair Windows 11/10 using Command Prompt with SFC scannow

The first repair command we’ll execute first is system file check (SFC). SFC is able to automatically scan for corrupted and missing system files, and repair or replace them in Windows 11/10. In the command prompt, enter the following command.

sfc /scannow

Fix boot Windows 10 Command Prompt

The process may take 30 minutes or up to several hours depending on the size of the Windows system files and your HDD performance. When the scan is completed, you can choose to restart your PC now to verify if the problem still persists, or continue executing other commands below.

Run CHKDSK to check for hard drive errors

Hard drive error is one of the most common errors that causes Windows to crash or corrupt. Running check disk (chkdsk) will certainly help to check and repair unwanted disk errors on your HDD, especially your Windows partition.

In the command prompt, enter the following command to perform chkdsk.

chkdsk c: /f

Since you’re not currently using your disk, chkdsk should not ask you to restart your PC. If it tells you that the volume is in used and that it will schedule the chkdsk scan on your next restart, press Y key to proceed.

Fix boot Windows 10 Command Prompt

Similar to system file check, the scan may take some time. Try not to interrupt the scan. When the scan is completed, restart your PC and verify if your problem is solved. Continue to the next repair command if the problem still exist.

Run DISM to repair Windows 10/11 image

Deployment Imaging and Servicing Management (DISM) is a Windows built-in tool to automatically update files and correct services problems for your Windows 10/11 image. In the cmd, enter the following command.

Dism /Online /Cleanup-Image /RestoreHealth

Fix boot Windows 10 Command Prompt

Running Bootrec to repair Windows 10/11 Boot problem

Bootrec.exe is an incredibly useful tool to repair boot problems in Windows 10/11. When startup repair or any kind of troubleshoot can’t repair your Windows boot problem, you should try using bootrec repair tool.

In the command prompt, enter the following commands followed by an Enter key after each line of command.

bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd
bcdboot c:\windows /s c:

These commands are to execute bootrec.exe to fix the Master Boot Record (MBR) and other boot problems in Windows 11/10. Replace C: if your Windows is stored in another drive. Reboot your computer after executing all commands.

If none of the solutions above works to repair your Windows boot problem, you may then decide if you want to system restore Windows 11/10 to a previous date, roll back Windows 11/10 update to an earlier build, or reset Windows 11/10 to factory settings.

How do I repair Windows 10 with Command Prompt?

Type sfc /scannow at command prompt and hit Enter. The scan will take a while; it should fix any corrupted files it finds.

How do I run Startup Repair from Command Prompt?

Click Repair your computer. Select the operating system that you want to repair, and then click Next. In the System Recovery Options dialog box, click Command Prompt. Type Bootrec.exe, and then press Enter.

How do I fix a corrupted boot Windows 10?

Method 1: Startup Repair tool.
Start the system to the installation media for the installed version of Windows. ... .
On the Install Windows screen, select Next > Repair your computer..
On the Choose an option screen, select Troubleshoot..
On the Advanced options screen, select Startup Repair..

What are the 4 ways to fix Windows 10 startup?

Four of the top approaches for solving Windows 10 boot problems are launching the Startup Repair tool, repairing the Master Boot Record (MBR), scanning the system for corrupt or missing files, and running the Deployment Image Servicing and Management (DISM) tool.