How to Repair Windows 11 Using the DISM Restore Health Command

DISM restore health command in Windows 11 terminal

What DISM Does and Why It Exists in Windows 11

If your PC feels unstable, keeps failing to update, or throws system errors that won’t go away, it could be more than just a bug — your Windows image might be damaged. That’s where DISM comes in. Built into Windows 11, DISM stands for Deployment Image Servicing and Management, and it’s designed to repair the underlying system image that other repair tools rely on.

Normally, when something feels off, you might run the System File Checker (SFC) to scan for issues. But here’s the catch — SFC pulls its repairs from the system image. If that image is corrupted too, SFC can’t do much. That’s why the dism restore health command matters. It repairs the actual source files, making sure SFC has a clean base to work from next time.

In short, DISM works one layer deeper. It’s especially useful if SFC fails, or if you’re dealing with stubborn problems after a failed update, power outage, or malware cleanup. Many users run DISM when they need to fix corrupted files without jumping straight to a system reset or reinstall.

Up next, we’ll walk through the three DISM tools — CheckHealth, ScanHealth, and RestoreHealth — and when to use each one depending on your situation.

DISM offers a few powerful commands — and knowing which one to run makes all the difference. You don’t always need to go straight into a full system repair. Sometimes a quick check is enough, and other times you’ll want a deep scan followed by a full restore.

Start with dism check health. This command checks if your system image is flagged as corrupted. It’s fast and non-intrusive — perfect if you just want to see if something’s wrong without actually scanning the entire image. It won’t fix anything, but it’s a useful first step when things feel off.

If you suspect deeper issues, follow up with dism scan. This refers to the full command: DISM /Online /Cleanup-Image /ScanHealth. It takes longer to run but performs a full integrity check. It still won’t attempt any repairs, but it gives a more detailed report about what’s broken and where.

When you’re ready to fix things, run dism restore health — the full version being DISM /Online /Cleanup-Image /RestoreHealth. This command connects to Windows Update and replaces damaged components in the system image. It’s your go-to option when SFC doesn’t work or you’re facing persistent system issues.

Each command builds on the last. Begin with dism check health, move to dism scan if needed, and finish with dism restore health when you’re ready to repair. It’s a smart way to troubleshoot in stages — without going overboard.

Table of Contents

Step-by-Step: Running DISM Restore Health Command

When your system files are beyond what SFC can handle, it’s time to use the big gun — the dism /online /cleanup-image /restorehealth command. This tool scans the Windows image itself and replaces any corrupted components directly from Windows Update. If you’re seeing persistent system errors or failed repairs, this is the move that usually gets things back on track.

Here’s how to run it:

  • Click Start and type “cmd.” Right-click on Command Prompt and choose Run as administrator.
  • In the Command Prompt window, type: dism /online /cleanup-image /restorehealth
  • Press Enter and let the process begin. It can take 10–20 minutes depending on your system and connection speed.

You’ll see a percentage bar while the system scans and replaces any corrupted image files. When it finishes, you’ll get a message — ideally, one that confirms the restore operation completed successfully. If so, your system image is now repaired and ready for use with other tools like SFC.

If the dism /online /cleanup-image /restorehealth command fails or returns an error, don’t panic — it usually means there’s a deeper issue or that the repair source couldn’t be downloaded. We’ll cover how to handle that in the next part using a local source.

Sometimes running dism /online /cleanup-image /restorehealth fails because it can’t download the repair files from Windows Update. This often happens if your internet connection is unstable or if the system image is too damaged. The good news? You can still fix it — you just need to point DISM to a local repair source instead.

Here’s how to do it: First, download a clean copy of Windows 11 using the Media Creation Tool or the official ISO from Microsoft’s website. Mount the ISO file or insert a bootable USB drive with the installation files.

Then open Command Prompt as administrator and run the following command, replacing D: with the correct drive letter where the ISO is mounted:

DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\install.wim /LimitAccess

This tells DISM to use your local copy of Windows files instead of pulling them from the internet. The /LimitAccess flag stops it from checking Windows Update at all, which helps when the online source is failing or unavailable.

Using a local image source is especially useful for IT pros or anyone repairing multiple machines without internet access. It also gives you a reliable fallback if dism /online /cleanup-image /restorehealth fails in normal situations.

System Habits That Reduce Image Corruption Risks

Running the dism /online /cleanup-image /restorehealth command is a great fix, but the real win is avoiding corruption in the first place. System image issues often come from power cuts, failed updates, or hardware glitches — things you can prevent with a few smart habits.

First, avoid forced shutdowns. Holding down the power button or unplugging your machine mid-task can interrupt critical processes and lead to corrupted files. Always use the proper shutdown or restart option, especially during updates.

Next, keep your drivers and firmware up to date. Outdated drivers can cause crashes and unstable behavior that affect system files. Run Windows Update regularly, and check your laptop or motherboard manufacturer’s site for firmware updates a few times a year.

Also, don’t let your disk space run too low. Windows needs free space to manage updates and temporary files. If your drive is nearly full, it increases the risk of incomplete writes or failed updates — both common causes of image damage.

If you’ve used DISM to fix corrupted files already, adopting these habits will help keep your system stable in the long run. Prevention doesn’t take much — just a few adjustments to how you use your PC — but it saves a lot of repair work later.

Already ran DISM and want even more ways to restore performance? Dive into our full Windows 11 speed up optimization guide for cleanup tips, power tweaks, and system-wide boosts that go beyond basic repairs.

While dism /online /cleanup-image /restorehealth is a powerful tool on its own, it works even better when used alongside other system repair options. Think of DISM as fixing the foundation — and tools like SFC, System Restore, or even Reset PC as ways to finish the job or patch surface issues.

After running DISM, it’s a good idea to follow up with sfc /scannow. Since DISM repairs the system image, SFC can now pull from a clean source and successfully fix any remaining corrupted files in the operating system. It’s a solid one-two punch for repairing deeper issues without needing a reinstall.

If your problems started after a recent driver update or app install, System Restore might be a better option. It lets you roll back your system to a previous state before the issue began — no command line required. And if none of these work, a Reset with the “Keep my files” option can give you a clean slate without wiping your data.

After repairing the image and system files, many users notice performance improvements — faster boots, fewer crashes, and smoother updates. Combining these tools doesn’t just help you fix corrupted files. It helps keep your entire system running clean, responsive, and reliable for the long haul.

Frequently Asked Questions (FAQ)

What is DISM in Windows 11?

DISM stands for Deployment Image Servicing and Management. It’s a built-in tool in Windows that repairs the underlying system image — the part of Windows responsible for maintaining the OS structure and files. It’s most useful when other tools, like SFC, fail to fix system issues or file corruption.

How do you run the DISM command?

To run DISM, open Command Prompt as an administrator and type the full command: dism /online /cleanup-image /restorehealth. This will scan your system image and repair any problems it finds using files from Windows Update. If you’re offline, you can also run DISM with a local source like an ISO file.

What does DISM do exactly?

DISM checks the Windows system image for corruption and can repair damaged components. It ensures that your core system files are working properly, and it supports tools like SFC by making sure their source files are intact. Think of it as a way to fix the repair tools themselves when they stop working.

How to fix DISM error 87?

Error 87 usually means there’s a syntax mistake in the command. Double-check that you’re typing dism /online /cleanup-image /restorehealth exactly as written — with spaces and no typos. Also, make sure you’re running Command Prompt as an administrator, or DISM won’t work properly.

What is the DISM Host Servicing Process?

The DISM Host Servicing Process is a background Windows process related to system image servicing. It shows up when you’re running DISM commands or when Windows is handling image-related tasks like component cleanup. It’s safe and should not be disabled.

What does DISM stand for?

DISM stands for Deployment Image Servicing and Management. It’s been part of Windows since the Windows 7 era and is used for maintaining and repairing the Windows operating system, especially the system image used for restoring files and system components.

Georgijus

Georgijus

Founder of LivePCTech, Georgijus is a full-stack engineer with 16+ years of experience in hosting, DevOps, Linux/Windows systems, and backend software development.

→ Learn more about Georgijus