Repair Windows 10 Using Command Prompt FAQs Entering the CMD windows. Type in sfc /scannow, and press the Enter key. ... If the SFC command doesn't work. ... Type in DISM /Online /Cleanup-Image /ScanHealth to scan the corruptions of Windows images. Type in DISM /Online /Cleanup-Image /RestoreHealth /Source:repairSource\\install. May 24, 2023