Skip to content
Home » DISM /Online /Cleanup-Image /RestoreHealth: Complete Windows 10/11 Repair Guide (2026)

DISM /Online /Cleanup-Image /RestoreHealth: Complete Windows 10/11 Repair Guide (2026)

dism /online /cleanup-image /restorehealth explained

If your Windows 10 or Windows 11 PC is crashing, freezing, or failing to update, your system files may be damaged. The DISM /Online /Cleanup-Image /RestoreHealth command is one of the most reliable ways to fix this. In this article, you’ll learn what the DISM command does, when to use it, and how to run it step by step.

Quick Answer:

To repair your Windows system image using DISM, open Command Prompt as Administrator and type:

Dism /Online /Cleanup-Image /RestoreHealth

Press Enter and wait 15–30 minutes for the repair to complete. Then run: sfc /scannow

This two-step process fixes 95% of Windows corruption errors, update
failures, and system crashes.

Key Takeaways:

  • The DISM /Online /Cleanup-Image /RestoreHealth command repairs the core Windows system image and component store.
  • Always run DISM before SFC — DISM fixes the source files that SFC uses.
  • DISM usually needs an internet connection, unless you use a local source (USB/ISO).
  • Typical repair time is 15–30 minutes; on some systems it can be longer. Do not interrupt the command.
  • Running DISM + SFC fixes the majority of Windows corruption, update failures, and random crashes.
  • If DISM fails, use local source files, reset Windows Update components, or use Windows repair media.
  • Always restart after DISM, then run sfc /scannow, and restart again for a fully clean system.

What Is DISM /Online /Cleanup-Image /RestoreHealth?

DISM stands for Deployment Image Servicing and Management. The DISM /Online /Cleanup-Image /RestoreHealth command scans and repairs the underlying system image used by your Windows installation. It is a built-in repair tool in Windows 10 and Windows 11 that administrators use to check, clean, and repair Windows images.

Here’s what it does:

  • Scans the Windows component store (WinSxS folder) for corruption
  • Downloads fresh copies of corrupted files from Windows Update
  • Repairs the system image so System File Checker (SFC) can work properly
  • Fixes errors that SFC alone cannot resolve

Microsoft describes this command as essential when SFC reports: “Windows
Resource Protection found corrupt files but was unable to fix some of them.”

Note: DISM repairs the SOURCE files that SFC uses. If DISM fails, SFC will also fail. Always run DISM first, then SFC.

When Should You Run the DISM RestoreHealth Command?

DISM is particularly useful after Windows updates if system file corruption is suspected, or when experiencing frequent crashes, freezes, or errors that SFC cannot resolve. It connects to Windows Update to download fresh copies of files to repair the system image.

Run DISM /Online /Cleanup-Image /RestoreHealth if you experience:

  • Windows updates keep failing or getting stuck
  • You see frequent Blue Screen of Death (BSOD) errors
  • Windows becomes very slow, freezes, or hangs often
  • You get the message: “Windows Resource Protection found corrupt files but was unable to fix some of them.”
  • The sfc /scannow command cannot fix errors
  • You see error codes like 0x800f081f or 0x800f0906
  • Your PC became unstable after a big Windows update

Important: Always create a system restore point or back up your data before making major changes to system files. Also, you will need administrative privileges to run DISM commands.

How to use DISM Commands to Repair Windows Image

Ensure your device is connected to a stable, working internet connection, as DISM uses Windows Update as a Source to repair the system image.

Prerequisites:

  • Administrator account access
  • Stable internet connection (DISM uses Windows Update)
  • 30–45 minutes of uninterrupted time
  • At least 2 GB free disk space

Now let’s explore Different DISM command-line options and how they can be used to repair the Windows system image.

Step 1: Open Command Prompt as Administrator

  • Press Windows Key + S, Type cmd
  • Right-click Command Prompt, Click Run as administrator
  • Click Yes on the User Account Control prompt

Alternative method (Windows 10/11):

  1. Press Windows Key + X
  2. Click Terminal (Admin) or Command Prompt (Admin)

You must see “Administrator: Command Prompt” in the title bar.

Step 2: Run DISM ScanHealth (Optional but Recommended)

Before running the repair, scan your system to detect corruption. This step is optional but helpful. It checks for problems before you repair them.

In Command Prompt (Admin), type DISM /Online /Cleanup-Image /ScanHealth, then press Enter..

DISM ScanHealth command line

What this does:

  • Scans for component store corruption
  • Records findings to C:\Windows\Logs\CBS\CBS.log
  • Does NOT fix anything — only reports issues
  • Takes 10–15 minutes

If you see “The operation completed successfully”, it means the scan ran correctly. If it finds corruption, that is normal — you’ll fix it in the next step.

Step 3: Run DISM RestoreHealth (The Main Repair)

Now run the actual Windows image repair command: Dism /Online /Cleanup-Image /RestoreHealth

What this does:

  • Scans the Windows image for corruption
  • Automatically downloads and replaces corrupted files from Windows Update
  • Repairs the component store (WinSxS folder)
  • Ensures SFC can work properly afterward

How Long Does DISM RestoreHealth Take?

It may take 15–30 minutes (sometimes up to 45 minutes)

Factors that affect speed:

  • System performance (older PCs take longer)
  • Internet connection speed (slower = longer)
  • Extent of corruption (more corruption = longer)
  • Available disk space (low space = slower)

DO NOT interrupt the process. Closing the Command Prompt or restarting your PC will further corrupt your system.

During the process, you’ll see a percentage progress bar like this:

[===========     ] 35.2%
DISM RestoreHealth Command line

When complete, you’ll see: The restore operation completed successfully.

Step 4: Restart Your Computer

After DISM completes, restart your PC. You can restart using a command: shutdown /r /t 30

This gives you 30 seconds to save work before restart. Or simply press Windows Key + X → Shut down or sign out → Restart.

Step 5: Run System File Checker (SFC) After DISM

Once your PC restarts, open Command Prompt as Administrator again and run:

sfc /scannow
Use SFC and DISM command

This scans and repairs any remaining corrupted individual files. SFC uses the repaired component store that DISM just fixed.

Expected time: 5–15 minutes

When SFC completes, you may see messages like:

  • “Windows Resource Protection did not find any integrity violations.” (No issues.)
  • “Windows Resource Protection found corrupt files and successfully repaired them.” (Fixed.)

After SFC finishes, restart your PC again.

DISM vs SFC: Which Tool Should You Use?

The best practice is to run DISM first to ensure system integrity, followed by SFC to repair specific file issues.

FeatureDISMSFC
Repairs main Windows image✅ Yes❌ No
Repairs individual system files❌ No✅ Yes
Uses Windows Update by default✅ Yes❌ No
Fixes the component store✅ Yes❌ No
Typical speed15–30 minutes5–15 minutes
Best time to runWhen updates fail or SFC can’t fix errorsAfter DISM completes
Works when SFC fails✅ OftenRepairs the main Windows image

The Correct Order:

  1. Run DISM /Online /Cleanup-Image /RestoreHealth
  2. Restart PC
  3. Run sfc /scannow
  4. Restart the PC again

Why this order? DISM fixes the source files that SFC needs. If you run SFC on a corrupted system first, it will fail because the source is corrupted.

DISM Without Internet: Using Local Source Files

If your PC does not have internet access, or if Windows Update is broken, you can still use the DISM command with a local Windows installation source (USB drive or mounted ISO).

What You’ll Need:

  • A Windows 10 or Windows 11 installation USB or ISO file
  • The drive letter of that USB or mounted ISO (for example, D:)
  • Command Prompt running as Administrator

How to Use Local Source Files

  • Insert your Windows installation USB or mount the ISO (Right-click the ISO → Mount). Note the assigned drive letter (for example, D:)
  • Open Command Prompt as Administrator. Run this DISM command, replacing D: with your actual drive letter:
Dism /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\Install.wim /LimitAccess
dism restorehealth with Source options

What this command does:

  • Use Install.wim on your USB/ISO as the repair source
  • /LimitAccess stops DISM from contacting Windows Update
  • Useful for offline repairs or when the online DISM command fails

This can take 20–40 minutes or more, depending on your PC.

If you have multiple sources, you can add them like this:

DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\Install.wim;E:\Sources\Install.wim /LimitAccess

Note: Repairing from local source can be slower, but it often fixes issues that online repair cannot.

Common DISM Errors and How to Fix Them

Here are some common errors you may encounter when using the DISM /Online /Cleanup-Image /RestoreHealth command, along with how to resolve them.

1. Error 0x800f081f – “The source files could not be found”

Cause: DISM cannot find the files it needs to repair Windows. This may happen if Windows Update is offline or blocked.

Fix:

  1. Check your internet connection and try the command again.
  2. If it still fails, use the local source method: DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\Install.wim /LimitAccess
  3. If necessary, download fresh Windows installation media from Microsoft and try again.

2. Error 0x800f0906 – “Could not find the image file”

Cause: The Windows image or repair source is damaged or missing.

Fix:

  1. Run Windows Update and install all important updates.
  2. Use a new Windows installation USB or ISO.
  3. Run the DISM command again: DISM /Online /Cleanup-Image /RestoreHealth

3. DISM Stuck at 20% or 50%

Cause: Slow internet, slow disk, antivirus scanning, or heavy corruption. DISM often pauses at certain percentages for a long time, but is still working.

Fix:

  1. Wait longer — on some PCs it can take 45 minutes or more.
  2. Temporarily disable third‑party antivirus software.
  3. Close other running programs.
  4. If it is stuck for more than 2 hours, restart the PC and try again.
  5. Check your disk for errors with: chkdsk C: /F (You may need to restart to allow the check to run.)

4. “The operation completed successfully” but problems remain

Cause: DISM fixed the main image, but individual system files are still damaged.

Fix:

  1. Run: sfc /scannow
  2. Restart your PC.
  3. If problems continue, run SFC again.
  4. If SFC still cannot fix files, check for hardware issues such as:
    • Failing hard drive or SSD
    • Faulty RAM

5. “Access is denied”

Cause: Command Prompt is not running with Administrator rights.

Fix:

  1. Close Command Prompt.
  2. Open it again using Run as administrator.
  3. Try the DISM command again.

6. “The operation could not be completed due to pending operations”

Cause: Windows Update or another system task is still in progress, or a restart is required.

Fix:

  1. Restart your PC.
  2. Wait a few minutes after Windows loads.
  3. Run the DISM command again.

Advanced Fixes When DISM /RestoreHealth Still Fails

If the DISM /Online /Cleanup-Image /RestoreHealth command does not work even after trying the steps above, try these advanced methods.

1. Run the Windows Update Troubleshooter

  1. Open SettingsSystemTroubleshootOther troubleshooters
  2. Find Windows Update
  3. Click Run

This tool automatically fixes many update-related problems that can interfere with DISM.

windows update troubleshooter

2. Reset Windows Update Components Manually

Open Command Prompt as Administrator and run these commands one by one:

net stop wuauserv
net stop cryptsvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
net start wuauserv
net start cryptsvc
net start bits
net start msiserver

This resets the Windows Update folders and services, which often fixes DISM and update errors.

3. Check Disk Health

A failing hard drive or SSD can cause repeated corruption.

Run this command:

chkdsk C: /F /R

You’ll be asked to schedule the scan for the next restart. Type Y, press Enter, then restart your PC.

This will scan your disk for bad sectors and try to repair them.

4. Use Windows Repair or Reset

If nothing else works, you may need to repair Windows using installation media.

  1. Create a Windows installation USB from Microsoft’s website.
  2. Boot from the USB.
  3. Click Repair your computer.
  4. Go to TroubleshootReset this PC or Startup Repair.

This can fix deep system problems that DISM cannot repair.

5. Check Event Viewer for Details

  1. Press Windows Key + R
  2. Type eventvwr.msc and press Enter
  3. Go to Windows LogsSystem
  4. Look for DISM or Windows Update errors around the time you ran the command

These logs can point to the exact reason why the DISM command is failing.

Conclusion: Fix Most Windows Problems with One Command

If your Windows 10 or 11 PC is crashing, freezing, or failing to update, the DISM /Online /Cleanup-Image /RestoreHealth command plus sfc /scannow is one of the safest and most effective repair methods. In most cases, running DISM, restarting, and then running SFC will bring Windows back to a stable, healthy state without reinstalling the system.

Frequently Asked Questions

How long does DISM /Online /Cleanup-Image /RestoreHealth take?

Usually 15–30 minutes. On older or heavily damaged systems, it can take 45+ minutes. Let it finish. Never interrupt the process.

Can I run DISM without an internet connection?

Yes, use the /Source parameter with local Windows installation media:
Dism /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\Install.wim /LimitAccess

What’s the difference between DISM and SFC?

DISM repairs the system image and component store (the source). SFC repairs individual files using that source. Run DISM first, then SFC.

Does DISM delete my files?

No. DISM only repairs system files in C:\Windows. Your personal files in Documents, Pictures, etc, are never touched.

Should I run DISM or SFC first?

Always run DISM first. If you run SFC on a corrupted system, it will fail because the source files are broken.

What does “The restore operation completed successfully” mean?

It means DISM fixed the corruption. Now run sfc /scannow to repair any remaining individual file issues.

Can DISM fix a failed Windows update?

Yes. DISM repairs the system image that Windows Update corrupted. After
DISM completes, Windows Update should work normally.

Robeg

I am Robeg founder of this blog. My qualification. completed Bachelor of Arts (BA) and Microsoft Certified Professional (MCP). With a strong background in computer applications love write articles on Microsoft Windows (11, 10, etc.) Cybersecurity, WordPress and more.