Windows Updates Fail or Files Corrupt? Run sfc /scannow and DISM in Order

Windows Updates Fail or Files Corrupt? Run sfc /scannow and DISM in Order

Have you ever tried to run a Windows update and hit a message like “corrupt system files were found,” or watched the same error return no matter how many times you cleared the cache? That usually means one of the core files Windows depends on has been damaged. The good news: you don’t need to reinstall Windows. Two built-in command-line tools — DISM and sfc /scannow — can repair those files for you. This is the standard Windows system file repair routine built into every modern Windows install, and it’s the fix most people miss before they reach for a fresh install.

Command prompt window running system repair commands on a Windows PC
The Command Prompt window where DISM and sfc /scannow run their repairs.

DISM vs. sfc /scannow: What each one does

These two commands have clear, separate jobs — and the order you run them in matters.

  • DISM (Deployment Image Servicing and Management) downloads clean Windows image files from Microsoft’s servers and rebuilds the local repair store your PC draws healthy copies from. (Think of it as restocking the materials warehouse.)
  • SFC (System File Checker) then uses that freshly repaired store to find and replace the actual broken system files on your PC. (That’s the actual building repair.)
Run order that matters: Always run DISM first, then sfc /scannow. Doing it backward often leaves files unrepaired.

Step 1: How to Open Command Prompt as Administrator

Because this check touches protected system files, you must run it with admin rights. A normal CMD window will fail the scan.

  1. Press the Windows key and type cmd.
  2. Right-click Command Prompt and choose Run as administrator.
Hands typing on a laptop keyboard to open an administrator command prompt

Open an administrator Command Prompt by right-clicking and choosing “Run as administrator.”

Step 2: Repair the Windows image with DISM (first pass)

This step connects to Microsoft’s servers and rebuilds the local repair store.

  1. In the admin CMD window, paste the command below and press Enter:

DISM.exe /Online /Cleanup-image /Restorehealth

  1. You’ll see a progress bar climb toward [== 20.0% ] and beyond.
  2. This typically takes 5–15 minutes. Wait until you see “The restore operation completed successfully.”
Computer monitor showing an error or system diagnostic screen

Errors and update failures often trace back to corrupted system files.

Step 3: Repair system files with sfc /scannow (second pass)

Now SFC uses that healthy store to swap out any broken files on your machine.

  1. In the same CMD window, type the command below and press Enter:

sfc /scannow

  1. The scan runs from 0% to 100%.
  2. When it finishes, read the result message — the table below tells you what to do next.

How to read the sfc /scannow result

After the scan, Windows Resource Protection prints one of three messages. Here’s what each one means and what to do:

Message you see What it means What to do
“Windows Resource Protection did not find any integrity violations.” Your system files are fine. Nothing to repair — the problem lies elsewhere. Look at other update fixes.
“Windows Resource Protection found corrupt files and successfully repaired them.” Damaged files were fixed. Restart your PC, then retry the Windows update.
“Windows Resource Protection found corrupt files but was unable to fix some of them.” DISM didn’t finish cleanly, or the damage is severe. Boot into Safe Mode and run sfc /scannow again. If it still fails, re-run DISM, then sfc /scannow once more.
Technician fixing a computer, representing Windows system file repair

Repairing a PC’s internals mirrors what sfc /scannow does to system files.

FAQ

Q: DISM has been stuck near 62.3% for over 10 minutes. Is it broken?
A: No — that’s normal. It’s downloading clean file copies from Microsoft’s servers, and the speed depends on your connection. Don’t close the window; just wait for it to reach 100%.

Q: Will DISM work if I’m offline?
A: The /Restorehealth option needs to reach Microsoft’s servers, so internet access is required. If you’re fully offline, mount a Windows installation ISO and point DISM at that local source path instead.

Wrapping up

When Windows updates fail or your system acts unstable, a corrupt system file is often the hidden cause. Windows system file repair doesn’t have to mean a full reinstall — running DISM first, then sfc /scannow, repairs those files in place, keeping your apps and files intact. After the scan reports success, restart and try your update again.

Found this guide useful? Bookmark it for the next time Windows throws an update error, and share it with anyone stuck on a broken PC. You’ll be glad you saved the exact DISM → sfc /scannow order.
Technician repairing a desktop computer inside the case

A technician servicing a desktop — the same idea as restoring Windows’ core files.

Photo credits: Pexels contributors.