DISM Command in Windows 11: A Complete Beginner’s Guide

If you’ve already heard of SFC (System File Checker) and maybe even tried sfc /scannowYou’ve probably seen guides mention another tool: DISM. For many Windows 11 repair tasks, especially when system files are badly damaged, technicians will say: “Run DISM first, then SFC.” But what exactly is DISM? Why is everyone talking about commands like dism /online /cleanup-image /restorehealth? And how do you safely use DISM.

In this article you’ll learn,

  • What DISM is and what it does in Windows 11
  • How DISM is different from SFC
  • When you should use DISM
  • The DISM commands for repairing Windows 11 system images
  • How DISM and SFC work together to fix deep system problems

What Is DISM in Windows 11?

DISM stands for Deployment Imaging Servicing and Management.

The name sounds scary, but at a simple level you can think of it like this:

DISM is a powerful command-line tool that repairs and manages the underlying Windows “image” that SFC and Windows itself rely on.

A Windows image is basically a template or store of Windows components and files. In Windows 11, this is often referred to as the component store or WinSxS folder. When Windows needs to install features or when SFC needs to replace damaged files, it pulls the “good copies” from this image.

If that image (component store) is damaged, tools like SFC may not be able to repair your system files correctly. That’s where DISM comes in: it can check and repair the system image itself.

So:

  • SFC checks and fixes system files.
  • DISM checks and fixes the source those files come from (the system image).

Both are important.

DISM vs SFC: What’s the Difference?

Both DISM and SFC are used to repair system files, but they do different jobs. SFC scans and repairs individual corrupted Windows system files while DISM repairs the underlying Windows system image.

SFC (System File Checker)

  • Focus: Protected system files currently in use on your running Windows.
  • Command: sfc /scannow
  • Job: Finds and replaces corrupted or missing system files with copies from the component store.
system file checker command

DISM (Deployment Imaging Servicing and Management)

  • Focus: The Windows image/component store itself (WinSxS), not just active files.
  • Common repair commands:
    • dism /online /cleanup-image /checkhealth
    • dism /online /cleanup-image /scanhealth
    • dism /online /cleanup-image /restorehealth
  • Job: Checks if the underlying source that SFC uses is healthy and, if not, repairs it.

In practice, when you see:

“Windows Resource Protection found corrupt files but was unable to fix some of them.”

…that often means the component store is damaged, and you need DISM to fix that before SFC can do its job properly.

When Should You Use DISM on Windows 11?

You don’t need to run DISM every day. But you should consider it in situations like these:

  1. SFC can’t fix all errors
    • SFC reports: “found corrupt files but was unable to fix some of them.”
  2. Deep or repeated system problems even after basic fixes
    • Windows 11 is very unstable.
    • System apps crash often.
    • Updates keep failing with weird errors.
  3. You suspect the Windows image is damaged
    • Maybe a bad shutdown or failed update has damaged not just files, but the source Windows uses to rebuild them.
  4. You’re preparing or repairing a Windows image (more advanced use)
    • IT admins use DISM to service offline images (.wim files), but as a beginner you’ll mostly use it on your running system.

If Windows 11 is misbehaving, a good sequence is:

  1. Run DISM to make sure the image is healthy.
  2. Then run SFC to repair system files.
DISM then sfc command

Common DISM Repair Commands

For beginners, you really only need a few core DISM commands. They all start with:

dism /online /cleanup-image

The important part is what comes after that.

1. /checkhealth

Command:

dism /online /cleanup-image /checkhealth
  • Purpose: Quickly checks if the Windows image is flagged as corrupted.
  • It does not perform a full scan.
  • It does not repair anything. It just tells you whether corruption is detected and if the image is repairable.

2. /scanhealth

Command:

dism /online /cleanup-image /scanhealth
  • Purpose: Performs a deeper scan of the Windows image.
  • Look for component store corruption more thoroughly.
  • This can take several minutes.
  • Still does not fix anything; it only scans and reports.

3. /restorehealth

Command:

dism /online /cleanup-image /restorehealth
  • Purpose: Scans the image for corruption and attempts to repair it.
  • This is the main repair command beginners use.
  • It may connect to Windows Update or use local sources to replace damaged components.

In simple terms:

  • /checkhealth – quick check
  • /scanhealth – detailed check
  • /restorehealth – check and repair

Most of time you only need two commands to fix window problems the /restorehealth, then run SFC.

How to Run DISM on Windows 11

Now, let’s go through the process as you would actually do it on your PC.

Step 1: Open Windows Terminal or Command Prompt as Administrator

DISM needs elevated (admin) privileges.

  1. Right‑click the Start button (or press Win + X).
  2. Click Windows Terminal (Admin) or Terminal (Admin).
    – or –
  3. Search for Command Prompt in Start, right‑click it, and choose Run as administrator.
  4. Click Yes when prompted by User Account Control.

You should see a window with administrator in the title.

Step 2: Optional – Quick health check

To perform a quick check without repair, type:

dism /online /cleanup-image /checkhealth

Press Enter.

  • This usually finishes relatively quickly.
  • It tells you if the image is flagged as damaged or not.

Step 3: Deeper scan (optional but useful)

For a more thorough scan (still no repair yet), type:

dism /online /cleanup-image /scanhealth

Press Enter and wait. This can take several minutes.

At the end, it will say whether the image is healthy, repairable, or non‑repairable.

Step 4: Repair with /restorehealth

This is the main step.

Type this command and press Enter:

dism /online /cleanup-image /restorehealth

Now wait. This can take a while. During this time, DISM will:

  • Check the system image for corruption.
  • Attempt to download or use local good copies of components.
  • Replace or repair damaged parts of the image.

Things to remember:

  • The percentage may pause at some values (e.g., 20%, 40%, 62%) for a long time. This is normal.
  • Do not close the window or restart while it’s still running.

Once it finishes, you should see something like:

The restore operation completed successfully.
The operation completed successfully.

If you get an error, note the error code and message; it can help troubleshoot further.

Step 5: Restart and run SFC

After running /restorehealth, it’s a good idea to:

  1. Restart your PC.
  2. Open an elevated terminal/Command Prompt again.
  3. Run:
sfc /scannow

Now that the Windows image is repaired, SFC has a healthy source to repair any remaining corrupt system files.

How DISM Actually Repairs Windows?

Usually when you run:

dism /online /cleanup-image /restorehealth

DISM:

  1. Looks at the component store (WinSxS) where Windows keeps source files for features and system components.
  2. Checks for missing, damaged, or mismatched components.
  3. Attempts to replace or repair those components.

By default, it may use:

  • Local component store data
  • Windows Update (if allowed) to download clean versions of components

When the image is healthy again:

  • Future updates are more likely to install correctly.
  • SFC can successfully replace corrupt system files using this fixed source.

What If DISM Fails or Shows an Error?

Sometimes, /restorehealth might show errors like:

  • Failed to start servicing
  • Source files could not be found
  • Error codes like 0x800f081f, 0x800f0906, etc.

Here are some basic things to try as a beginner:

  1. Check your internet connection
    • If DISM needs Windows Update to download components, a broken connection can cause errors.
  2. Make sure Windows Update services aren’t completely disabled
    • Hardcore “debloating” or old tweak guides that disable Windows Update can interfere with DISM.
  3. Run DISM again
    • Sometimes, running /restorehealth a second time after a restart can succeed.
  4. Check for disk issues
    • Use chkdsk to ensure your disk doesn’t have serious errors:
chkdsk C: /f
  • You may need to restart to let it run.
  1. As a last resort, consider in-place repair or reset
    • If DISM and SFC both can’t repair Windows, you might need to:
      • Perform an in-place repair upgrade using Windows 11 installation media, or
      • Use Reset this PC (with or without keeping files) after backing up important data.

At this point, if you’re not comfortable, it’s a good idea to ask a qualified technician for help.

Frequently Asked Questions

What does the DISM command do in Windows 11?

DISM (Deployment Imaging Servicing and Management) repairs and manages the Windows system image that Windows and SFC use as a source for system files. In Windows 11, you mainly use DISM to check and fix corruption in the component store so system repairs and updates work correctly.

What is the most important DISM command for repairing Windows 11?

For most users, the key command is:
dism /online /cleanup-image /restorehealth
It scans the Windows image for corruption and tries to repair it using local files and, if needed, Windows Update.

Should I run DISM before or after SFC?

If SFC reports that it found corrupt files but could not fix some of them, you should run DISM first to repair the image, then run sfc /scannow again. A common order is: dism /online /cleanup-image /restorehealth → restart → sfc /scannow.

Does DISM delete my personal files or installed programs?

No. DISM works on the Windows image and components, not your personal data. It doesn’t wipe your documents, pictures, or videos. It’s designed to repair system components, not reset or reinstall everything.

What should I do if DISM /restorehealth shows an error?

First, check your internet connection and try the command again. Make sure Windows Update services are not completely disabled. If errors persist, check your disk with chkdsk, and consider an in‑place repair install or Reset this PC after backing up important data, or seek help from a technician if you’re unsure.

Leave a Comment