To repair a corrupted Windows installation via Command Prompt (CMD), run the DISM and SFC tools. First, launch CMD as an Administrator, then execute:
DISM.exe /Online /Cleanup-Image /RestoreHealth followed by sfc /scannow to scan and replace broken system files. [1, 2, 3]Essential Windows Repair Commands
Follow these command-line tools in order for the most effective system repair:
1. Check/Repair Windows Image (DISM)
2. Scan and Repair System Files (SFC)
3. Scan and Fix Disk Errors (CHKDSK)
- Command:
chkdsk C: /f /r - Note: Since the drive is currently in use by Windows, CMD will ask to schedule the scan for your next system restart. Type Y (Yes) and hit Enter to confirm. [1, 2]