How to Use Command Prompt to Troubleshoot Windows 10

0
209

Description: How to repair Windows 10 using Command Prompt? Troubleshoot and fix Windows 10 problems with Command Prompt, incl. BootRec commands, SFC, CHKDSK, etc.

If your Windows 10 computer can’t run well or has some issues during booting, Windows Command Prompt utility can generally give you some help to repair Windows 10 problems.

This post introduces 5 ways for how to repair Windows 10 using Command Prompt. Namely, you can repair Windows 10 boot issues with BootRec commands, repair corrupted or missing system files with SFC Scannow, repair corrupted system image with DISM, run CHKDSK to verify file system integrity of a hard drive partition and fix logical file system errors, perform a System Restore with Command Prompt in Windows 10.

Let’s firstly check how to open Command Prompt in Windows 10. Still, as for how to boot to Command Prompt in Windows 10 when PC can’t startup, this post also provides a detailed step-by-step guide.

How to Access Command Prompt in Windows 10

If your Windows 10 computer can boot, you can easily open Windows 10 Command Prompt with 3 ways. After you access Command Prompt, you can then repair Windows 10 using Command Prompt.

Way 1. Use Windows + R

The easiest way to open Command Prompt is to press Windows + R keys on the keyboard, and type cmd in Windows Run dialog and click OK to open Command Prompt. If you want to run Command Prompt as an administrator, you can press Control + Shift + Enter keys on the keyboard to realize it after you typing cmd.command prompt

Way 2. Open Command Prompt from Start Menu

You can click Start, and type cmd or command prompt. Choose the best-matched result Command Prompt to open this tool. If you want to open it as administrator, then right-click the Command Prompt result and select Run as Administrator.

Way 3. Find Command Prompt from Start

You can also click Start and scroll down to find Windows System. Click Windows System group to expand it and click Command Prompt to open it.

command prompt

How to Access Windows 10 Command Prompt When PC Won’t Boot

If Windows 10 won’t boot, you can try the 3 ways below to start Windows 10 into Command Prompt and repair Windows 10 using Command Prompt later.

Way 1. Force to open Command Prompt

You can turn off and on the Windows 10 computer three times, interrupt the booting process and turn off the computer immediately when you see the Windows logo during boot. This should take you into Windows Recovery Environment when you boot the computer the third time, and follow the instructions to enter into Advanced options window. You can click Command Prompt in Advanced options to open it.

command prompt

If you want to start Windows 10 in Safe Mode with Command Prompt, you can click Startup Settings in Advanced options window and later press F6 to restart Windows 10 with Command Prompt.

 Way 2. Use a Windows 10 recovery drive

You can also create a Windows 10 recovery disk/drive with another normal-working computer. Insert the Windows 10 recovery DVD disc or USB drive into the unbootable Windows 10 computer to boot it. After you get into the WinRE window, you can also easily get to Command Prompt.

Way 3. Open Command Prompt with installation media

If you have a Windows 10 installation disc or you have created a bootable USB drive from Windows 10 ISO, you can also boot your computer from the installation disk or USB drive. Follow the instructions to access Advanced Options in Windows 10 and to open Command Prompt.

Repair Windows 10 Boot Issues with Command Prompt

If your computer can’t start properly, you can type the following the command lines to repair Windows 10 boot problems after you get into Command Prompt window with the ways listed above. Please remember to hit Enter button after typing each line.

  • bootrec /fixmbr
  • bootrec /fixboot
  • bootrec /rebuildbcd

Repair Corrupted/Missing System Files with SFC in Command Prompt

Windows 10 computer is running abnormally, you can try SFC Scannow command to repair corrupted or missing Windows system files to see if it can get the computer back to normal. Type the following command and hit Enter to repair Windows 10 using Command Prompt.

  • SFC /scannow

Repair Corrupted Windows 10 System Image with DISM Command

If the source system image is damaged, then SFC command may not help you repair Windows 10 errors because it can’t get the good files from the system image to replace the corrupted system files. To deal with this, you can run DISM command to repair corrupted system image first. Hit Enter after you type each command line.

  • DISM /Online /Cleanup-Image /CheckHealth
  • DISM /Online /Cleanup-Image /ScanHealth
  • DISM /Online /Cleanup-Image /RestoreHealth /Source:repairSource\install.wim

Use CHKDSK Command to Troubleshoot Windows 10

If Windows 10 computer hard drive has some logical file system errors or bad sectors, Windows 10 may work abnormally. Luckily, Windows own offers a free disk repair command utility – CHKDSK which can help you fix this issue. Try to run CHKDSK in Command Prompt to repair Windows 10 with CMD. Type the following command line and hit Enter. Please replace “*” with the drive letter of the target partition. You can check the partition drive letter from file explorer in your Windows 10 computer.

  • chkdsk *: /f /r

command prompt

Run a System Restore for Windows 10 in Command Prompt

When your Windows 10 computer has severe problems and can’t work, you can try to perform a Windows System Restore in Command Prompt. Type the following command after you access Windows 10 Command Prompt, and hit Enter.

  • rstrui exe

After you enter into the System Restore Window, choose a restore point and follow the instructions to run a system restore in Windows 10.

Conclusion

You can easily open Windows 10 Command Prompt by using the ways introduced in this post and repair Windows 10 with Command Prompt. Try these ways to bring your Windows 10 computer back to normal work again.

Leave a reply