When a Windows PC starts throwing system errors, freezing, refusing an update or behaving oddly after ordinary troubleshooting has gone nowhere, the instinct is often to blame the most recently installed game, driver or app. Sometimes that is the right trail. But a damaged or missing Windows system file can also be behind problems that look much less specific.

Windows includes a built-in command-line utility for that possibility: Deployment Image Servicing and Management, usually shortened to DISM. Its name is a mouthful, but its job in this situation is straightforward. DISM checks the health of Windows’ internal repair source, known as the component store, and can repair it when corruption is found.

This is not a magic fix for every PC problem. A game-specific bug, a bad setting, a connection issue or intentional in-game behavior needs a different answer. A Windows integrity repair will not, for example, change a gameplay feature such as the stoppable train discussed by GTA VI players comparing its train with GTA V’s. DISM is for the operating system files Windows itself relies upon.

For suspected Windows corruption, there are three core commands worth knowing: CheckHealth, ScanHealth and RestoreHealth. They escalate from a fast status check to a fresh scan and then an attempted repair. All work on system files rather than personal documents, photos or save files.

What DISM is checking

Windows depends on protected system files to run applications, install updates and perform routine tasks. One of the important places behind that process is the Windows component store: an internal repository of files Windows uses when servicing, updating and customizing the operating system.

That distinction matters because the component store is not just another folder to tidy up. It supplies the healthy material Windows may need when repairing other protected files. If it is corrupted, another repair utility may lack a sound basis from which to restore damaged files.

DISM operates through a command-line interface (CLI), either Command Prompt or PowerShell. A CLI is simply a text-based way to instruct Windows to perform a task. These commands must be run with administrator privileges because they inspect and potentially alter operating-system-level components.

To start, open either Command Prompt or PowerShell as an administrator. Then enter one command at a time and allow it to complete. The commands below all start with the same base:

Related coverage includes Three DISM Commands to Repair a Damaged Windows Image.

DISM /Online /Cleanup-Image

The options after DISM tell it what target and operation to use. /Online means the currently running Windows installation is the target. /Cleanup-Image directs DISM to carry out recovery-related operations against that installation. The final option determines whether DISM should perform a quick check, a deeper scan or a repair attempt.

1. CheckHealth: the quick first check

Run:

DISM /Online /Cleanup-Image /CheckHealth

CheckHealth is the fast starting point. It checks whether Windows has already identified corruption in the system image and whether that corruption can be repaired. It is useful as an initial triage step because it takes very little time to finish.

The key limitation is in the name: it is a check of the health status Windows has already recorded, not a newly performed comprehensive scan. That makes it efficient, but it also means it is not the command to use when you need a new assessment of the component store.

In practical terms, CheckHealth answers a narrow question: has Windows already flagged a repairable image problem? If the answer points toward corruption—or if symptoms still justify a deeper look—the next command is ScanHealth.

2. ScanHealth: get a fresh report

Run:

DISM /Online /Cleanup-Image /ScanHealth

ScanHealth differs from CheckHealth because it performs a fresh scan of system files and reports what it finds about the component store’s health. It can take several minutes, so it is the more thorough diagnostic step of the two.

That fresh scan is valuable when Windows is unstable but there is no prior indication of corruption. Rather than assuming an old status is still accurate, ScanHealth actively examines the image. It is still a reporting step, however. If the goal is to have DISM try to correct the corruption it identifies, RestoreHealth is the relevant command.

A sensible progression is therefore:

  1. Use CheckHealth for a rapid status check.
  2. Use ScanHealth when a fresh component-store assessment is needed.
  3. Use RestoreHealth when DISM should scan and attempt repairs.

There is no need to treat the list as a ritual if the problem is already clear. The value of the first two commands is diagnostic: they help establish whether Windows image corruption is part of the problem before moving to repair.

3. RestoreHealth: scan and attempt repair

Run:

DISM /Online /Cleanup-Image /RestoreHealth

RestoreHealth is the repair command. It scans the component store for corruption and attempts to fix the problems automatically. By default, it uses Windows Update as the source for the replacement system files it needs.

This default behavior explains why a working Windows Update path is important. DISM is not inventing replacement files locally; when repair material is required, it normally obtains it through Windows Update. If the repair succeeds, the component store should again be in a condition that can support later system-file repairs.

It is also important to keep the scope realistic. RestoreHealth is aimed at Windows’ protected servicing components. It does not target personal files. It also does not establish that every application-level fault, game crash or peripheral problem came from system corruption in the first place. Think of it as a repair for a specific layer of the PC: Windows’ own image and component store.

When RestoreHealth cannot use Windows Update

There is an awkward failure case: damage to the system can affect Windows Update itself. In that circumstance, RestoreHealth may be unable to download the files needed to repair the component store. The alternative is to provide DISM with an official Windows installation image as its repair source.

First, obtain an official Windows ISO from Microsoft’s download page. An ISO is an image file that contains installation media. In File Explorer, right-click the downloaded ISO and choose Mount. Windows will make it available as a virtual drive, assign it a drive letter and expose its contents like a disc.

The drive letter is not guaranteed to be the same on every PC, so the examples below use D: only as a placeholder. Before attempting the repair, identify which editions are contained in the mounted installation media and their index numbers.

From an elevated Command Prompt, run:

DISM /Get-ImageInfo /ImageFile:D:sourcesinstall.wim

This lists the Windows editions present in the installation media along with their index values. Find the index that corresponds to the installed Windows edition and make a note of it. Matching the edition is important because the next command tells DISM exactly which image within the installation media should supply its replacement files.

Then run the following form of RestoreHealth:

DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:sourcesinstall.wim:6 /LimitAccess

Replace D: with the letter Windows assigned to the mounted ISO. Replace 6 with the index number that matches the installed edition of Windows. In this command, /Source points DISM at the mounted installation media, while /LimitAccess directs it to use that provided source rather than attempting to retrieve repair files from Windows Update.

That fallback is especially useful when the ordinary online repair path is unavailable. It does not change the purpose of the operation: DISM is still repairing the component store. It changes only where the repair files come from.

Run System File Checker after DISM

After DISM completes its repair operation, run:

sfc /scannow

This command launches System File Checker, commonly called SFC. It checks for damaged or missing protected system files and attempts to repair them. The ordering is meaningful: DISM repairs the component store that SFC relies on for replacement files. Repairing that foundation first gives SFC the proper source it needs for its own work.

For a concise recovery sequence, use RestoreHealth and then SFC when Windows image corruption is suspected. If Windows Update cannot supply repair files, mount official installation media, identify the correct edition index, point RestoreHealth to that WIM source, then follow up with sfc /scannow.

A practical checklist before entering the commands

  • Open Command Prompt or PowerShell with administrator privileges.
  • Use the command exactly as written, including the forward slashes and spaces.
  • Remember that /Online targets the Windows installation currently running on the PC.
  • Start with CheckHealth when a quick status check is useful; use ScanHealth for a newly performed scan.
  • Use RestoreHealth to have DISM attempt repairs through Windows Update.
  • If that repair route fails because Windows Update is affected, mount an official Windows ISO and use it as the source.
  • Confirm the installation media’s edition index before inserting it in the source command.
  • Run sfc /scannow only after DISM has completed, so SFC can rely on a repaired component store.

DISM’s terminology can make a modest repair workflow sound more intimidating than it is. At its core, the decision is simple: check the image status, scan it when necessary, and use RestoreHealth when Windows needs an attempt at repairing its internal component repository. For deeper damage that has also disrupted Windows Update, installation media provides the alternative repair source.