5 Best Ways to Repair Windows 10 Using Command Prompt

Last Updated : 5 Dec, 2025

When Windows 10 starts running slowly, crashes frequently, or fails to boot, it may seem like a complete reinstall is the only solution. Fortunately, the Command Prompt offers several powerful built-in tools that can diagnose and repair many system issues quickly. With just a few commands, you can fix disk errors, restore corrupted files, repair the bootloader, or resolve Windows Update problems.

What this guide covers:

  • Essential CMD tools like CHKDSK, SFC, DISM, BCD, and NET commands
  • How each command helps repair common Windows 10 errors
  • Step-by-step instructions to run all fixes directly from Command Prompt
  • Methods that work even when Windows won’t start normally

Important Note

This article will highlight all the methods to Repair Windows 10 with the help of Command Prompt Only.

Best Practices to Use Command Prompt

Before using the Windows repair commands, keep these important points in mind:

1. Always Run CMD as Administrator

  • Many repair commands modify system files, so CMD must run in Administrator mode. Otherwise, the commands won’t work or won’t apply any changes.

2. Enter Commands Carefully

  • Typing errors in CMD can cause failure or unexpected results. Double-check the syntax before pressing Enter.

3. Back Up Important Data

  • If your PC is unstable or experiencing severe errors, always back up your files. A major system failure could make your data inaccessible.

How to Repair Windows 10 Using Command Prompt

Below are the five most effective command-line methods to fix common Windows issues.

Method 1: Repair Disk Errors Using CHKDSK

What it does:

  • CHKDSK scans your drives for disk errors, bad sectors, and file system issues. Disk issues often cause Windows boot problems or random crashes.

Command to run:

chkdsk <drive-letter>: /f
  • This will analyze and fix disk-related problems.
1--CHKDSK
CHKDSK Command

Method 2: Repair Windows Image Using DISM

What it does:

  • DISM repairs and restores Windows system image files, which are required for updates and system functions.

Command to run:

DISM /Online /Cleanup-Image /RestoreHealth
  • This command scans the Windows image and automatically fixes corruption.
2--DISM
DISM Command

Method 3: Repair System Files Using SFC

What it does:

  • SFC (System File Checker) finds and repairs corrupted or missing system files.

Command to run:

sfc /scannow
  • Wait for the scan to finish, this tool restores essential Windows files.
3--SFC
SFC command

Method 4: Repair Win 10 using BCD Command

What it does:

  • If Windows fails to boot or shows bootloader errors, the BCD (Boot Configuration Data) command can rebuild the boot records.

Command to run:

bootrec /rebuildbcd
4--BCD
BCD command

Method 5: Fix Windows with NET Command (Windows Update)

What it does:

  • These commands reset Windows Update services helpful if updates fail to download or install.

Step 1: Stop the Windows Update service

net stop wuauserv
5--NET1
NET command

Step 2: Restart the service

net start appidsvc
6--NET2
NET command in CMD
  • This refreshes the update service and resolves stuck or failed updates.
Comment