Comprehensive Guide to Repair Windows 10 Using Command Prompt

Microsoft’s Command Prompt, also called CMD, acts as a command line interface. This is a platform-independent command-line interpreter and shell for Windows.
The Command Prompt can only display text output, but it supports various esoteric keyboard commands.

  • Using this method, you can fix your PC’s boot issues in a matter of minutes.

Boot into Safe Mode

  1. Press Windows + I to open the Settings app, and select Update & Security from the tabs on the left.
  2. Click the Recovery tab on the right.
    Click the Recovery tab on the right.
  3. Now, select Get started under the Advanced startup section.
  4. Now, select Troubleshoot, and click the Advanced options link.
  5. Select the Startup Settings option, and click the Restart button.
  6. After your PC restarts, you’ll be asked to choose the startup options. Choose Safe Mode with Networking and press F8.
    After your PC restarts, you'll be asked to choose the startup options. Choose Safe Mode with Networking and press F8.
  7. Once in Safe Mode, open Command prompt with Administrator privileges.
  8. In the command line, type the following command and press Enter to confirm it: DISM /Online /Cleanup-image /Restorehealth
  9. Wait for the scanning process to finish, and restart your PC.

Run an SFC scan

  1. Start Command prompt as administrator.
    Start Command prompt as administrator.
  2. Enter sfc/scannow in the Command prompt.
  3. Press Return to run the SFC scan.
  4. Then press the Y key if the SFC scan detects any issues.
  5. Then, press the Enter key to start the SFC scan.
    Then, press the Enter key to start the SFC scan.
  6. If the SFC scan resolves the error, press the Enter key.
  7. Then, press the Enter key again to start the SFC scan.
  8. If the SFC scan resolves the error, press the Enter key.
  9. Then, press the Enter key again to start the SFC scan.
  10. If the SFC scan resolves the error, press the Enter key.
  11. Then, press the Enter key again to restart Windows.

Fix Windows Update with a Deployment Image File System (DISM) scan

  1. Fix Windows Update with System File Checker (SFC)
    Fix Windows Update with Command prompt
  2. Fix Windows Update with Command Prompt (Version 2)
    Fix Windows Update with Command Prompt (Version 2)
  3. Fix Windows Update with Command Prompt (Version 3)
  4. Fix Windows Update with Command Prompt (Version 4)
  5. Fix Windows Update with Command Prompt (Version 5)

Run the DISM command

  1. Press the Windows key + X hotkey.
  2. Select Command prompt (Admin) to open an elevated prompt window.
    Select Command prompt (Admin) to open an elevated prompt window.
  3. Enter your administrator password in the Command prompt window.
  4. Paste the below command and press Enter: dism.exe /online /get-windowsfeatures
  5. Now, paste the below command and press Enter: dism.exe /online /get-windowsfeature /featurename:WindowsFeatureInstaller
  6. Press the Enter key.

Fix Windows Update with an Automatic Repair tool

  1. Disable Automatic Repair
    Disable Automatic Repair
  2. Fix Windows Update with an Automatic Repair tool
  3. Reinstall Windows Update
  4. Restart the Windows Update Service
  5. Use the sfc /scannow Command prompt
    Use the sfc /scannow Command prompt
  6. Use the dism command

Run a System File Checker scan

  1. Press Windows key + X and select Command prompt (Admin) or PowerShell (Admin).
    Press Windows key + X and select Command prompt (Admin) or PowerShell (Admin).
  2. In the Command prompt window, type the following command and press Enter: sfc /scannow
  3. Wait until the System File Checker scan is complete.

Use System Restore

  1. Hold down the Windows key and X key at the same time.
    Hold down the Windows key and X key at the same time.
  2. Click on System Restore
  3. Follow the onscreen instructions
  4. Select the desired restore point
Scroll to Top