Essential Windows Repair Commands: Fix Windows Errors Using CMD
The essential Windows repair commands are DISM /Online /Cleanup-Image /RestoreHealth to repair the Windows image, sfc /scannow to fix system files, chkdsk C: /f or /r for file system and disk errors, and bootrec or bcdboot for boot problems. Run them from an administrator Command Prompt, or from Windows Recovery if Windows won't start. Back up first.