> ## Content Index
> Fetch the complete content index at: https://winerror-repair.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# DISM ScanHealth Command: Run the Scan and Read Its Result
- URL: https://winerror-repair.org/dism-scanhealth-command/
- Published: 2026-11-22T13:17:24.000Z
- Updated: 2026-11-22T13:17:24.000Z
- Description: Use the right Windows target, distinguish a scan from a repair, and act on the final component-store result without repeating unrelated cleanup commands.
- Author: Daniel Hayes
- Tags: Windows system file repair

**DISM.exe /Online /Cleanup-Image /ScanHealth** scans the component store of the Windows installation you're currently using. Run it in an administrator console and wait for the final result. It detects component-store corruption; it doesn't repair it. Use **/RestoreHealth** when you need a repair, then check protected system files with SFC.

I'd use ScanHealth when the immediate question is whether the component store has a problem. If you're already following Microsoft's system-file repair procedure, you can go straight to its RestoreHealth step. Running every DISM option in a chain adds work without making the final result more conclusive.

## Choose the check that matches your task

Microsoft's [Cleanup-Image command reference](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-operating-system-package-servicing-command-line-options?view=windows-11&ref=winerror-repair.org) distinguishes these operations:

- **CheckHealth:** Has a failed process already flagged the image as corrupted, and can that corruption be repaired? This isn't a fresh full scan.
- **ScanHealth:** Does a scan find component-store corruption? It performs detection without the repair operation.
- **RestoreHealth:** Can DISM scan and repair the component store? Repair operations run automatically.

ScanHealth doesn't check every personal file, diagnose every application crash or replace a drive-health investigation. **sfc /scannow** is the separate check for protected system files. A clean component-store scan therefore doesn't establish that the whole PC is healthy.

The shared **/Cleanup-Image** prefix doesn't mean ScanHealth frees disk space. For superseded component cleanup, use the separate [StartComponentCleanup and ResetBase checks](https://winerror-repair.org/dism-startcomponentcleanup/). Don't add ResetBase to a diagnostic scan: that cleanup choice changes your ability to uninstall existing updates.

## Run ScanHealth in the Windows installation you use

Use this command when you've booted normally into the Windows installation you want to inspect. Save your work, keep the PC powered and let an existing update or servicing operation finish before starting another. On a managed PC, use authorized administrator access and the organization's repair process.

1. Search Start for **Command Prompt**.
2. Select **Run as administrator** and approve the prompt with an authorized administrator account.
3. Enter the command below, preserving the spaces before each slash-prefixed option. Copy only the command, without a PS or C:\\Windows prompt and without output from another run.
4. Wait for the final message, then record the command, its result and the time of the run.

```
DISM.exe /Online /Cleanup-Image /ScanHealth
```

[![PowerShell console with DISM.exe /Online /Cleanup-Image /ScanHealth entered at the system32 prompt before execution.](https://storage.ghost.io/c/a6/05/a605dee4-a7e9-4ae9-b795-ec5121bbb083/content/images/2026/11/scanhealth-console-ui.webp)](https://storage.ghost.io/c/a6/05/a605dee4-a7e9-4ae9-b795-ec5121bbb083/content/images/2026/11/scanhealth-console-ui.webp?ref=winerror-repair.org)

Enter ScanHealth in an administrator console. The command is shown before execution; read your own final message for the result. Select the image to enlarge the line.

An administrator PowerShell console can run the same DISM.exe command. The working-directory prompt, such as **C:\\Windows\\System32**, isn't the target selector. Microsoft's [global DISM options](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-global-options-for-command-line-syntax?view=windows-11&ref=winerror-repair.org) define **/Online** as the operating system currently running. It doesn't mean “download from the internet.”

You don't need to supply an ISO, a WIM index or a repair-source path for this component-store scan. Microsoft documents **/Source** with RestoreHealth for obtaining repair files. Keep source selection separate from deciding whether the scan detected corruption.

## Read the final message before choosing a repair

Keep the complete ending, including any error code. A scan that exits with an error hasn't established a clean component store, even if an earlier line looked reassuring.

- **Clean scan:** The completed scan found no component-store corruption. Return to the original symptom; use SFC if protected system files still need checking.
- **Repairable:** Use RestoreHealth for the same confirmed Windows target, then read its final result before running SFC.
- **Non-repairable:** Preserve important files and arrange a supported recovery decision. Don't keep repeating the same repair command or erase the drive merely to clear the message.
- **Scan failed:** Save the exact failure and inspect the matching logs. Detection did not complete successfully.

Microsoft's [image-repair procedure](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/repair-a-windows-image?view=windows-11&ref=winerror-repair.org) uses the healthy, repairable and non-repairable distinction to choose the next action. “The operation completed successfully” describes the command's execution. Read the health finding as well; successful detection and successful repair are different outcomes.

For repairable corruption in the running Windows installation, the repair command is:

```
DISM.exe /Online /Cleanup-Image /RestoreHealth
```

Wait for it to finish. Microsoft's [DISM and SFC repair sequence](https://support.microsoft.com/en-us/windows/experience/backup-recovery/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system-files?ref=winerror-repair.org) uses Windows Update to supply repair files by default. If RestoreHealth returns a source error, identify a suitable source rather than repeatedly rerunning ScanHealth or adding a random ISO path. The [DISM source-files-not-found checks](https://winerror-repair.org/0x800f081f/) cover that separate failure.

After the repair completes successfully, run:

```
sfc /scannow
```

Keep the SFC window open until verification finishes and address its final result. If SFC says it [could not perform the requested operation](https://winerror-repair.org/windows-resource-protection-could-not-perform-the-requested-operation/), that isn't a clean scan. Finally, retry the update, Windows feature or other operation that prompted the investigation.

## Keep recovery and offline targets separate

Don't paste the Online command into a USB recovery session expecting it to select Windows on your internal drive. In one [Windows 10 recovery discussion](https://learn.microsoft.com/en-us/answers/questions/3182561/dism-error-and-system-restore-error?ref=winerror-repair.org), the owner reported an X: prompt and error 50 after following Online instructions. The replies didn't establish a completed repair. The important distinction is which Windows environment is running.

Before offline repair or a recovery change, back up important files and make sure you can retrieve the matching BitLocker recovery key if the drive is encrypted. Microsoft's [recovery environment guidance](https://support.microsoft.com/en-us/windows/experience/backup-recovery/windows-recovery-environment?ref=winerror-repair.org) notes that encrypted devices need the key for certain tools. Keep that key private; on a managed PC, involve the administrator.

An offline installation uses **/Image:** followed by the root of its applied or mounted Windows directory tree. Confirm the installation, current drive letter and access to the volume first. Don't assume the desktop's usual C: letter or use a locked volume as a reason to format it.

Only if you've confirmed that **D:** contains the intended offline Windows installation with its standard Windows folder, the corresponding scan is:

```
DISM.exe /Image:D:\ /Cleanup-Image /ScanHealth
```

D: is an example, not a drive letter to copy blindly. The target is the root **D:\\**, not **D:\\Windows** or an install.wim file. If DISM cannot access the image or names a missing file, use the [target, source and DISM error 2 checks](https://winerror-repair.org/dism-error-2/). An unidentified or inaccessible installation needs its access problem resolved before another servicing attempt.

## Investigate a failed or stationary scan

Microsoft says ScanHealth takes several minutes; that isn't a fixed completion deadline. Don't declare failure because a percentage has paused or because another tutorial quotes a particular duration. If the command is still active, use the [DISM progress and log-observation checks](https://winerror-repair.org/windows-11-dism-stuck-at-62-3/) before interrupting it. Record that your operation is ScanHealth; a RestoreHealth percentage doesn't diagnose this run.

For a completed failure, use the log path printed by DISM. The default is **%WINDIR%\\Logs\\DISM\\dism.log**. Save the entries around the latest attempt together with the full command, DISM version, image version and final error. An older warning from another run doesn't identify this failure.

In Windows PE, Microsoft's global-options reference notes that the default log uses RAM-disk scratch space. Preserve the relevant log on a persistent writable drive before leaving recovery. Remove private account names and paths from a copy before sharing it publicly.

If the result is **1726, “The remote procedure call failed,”** follow the [DISM RPC-call failure investigation](https://winerror-repair.org/dism-error-1726/). A successful CheckHealth query doesn't prove a subsequent ScanHealth or repair completed. I wouldn't disable security software, change RPC registry values or delete component-store files on the strength of that number alone.

## Use published results with their original limits

The published cases separate detection, repair and cleanup. They involve different Windows versions and operations, so they don't support a combined success rate or a standard scan time.

In a [Windows 10 cleanup-failure discussion](https://www.windowsphoneinfo.com/threads/running-dism-fails-with-error-1726.332949/?ref=winerror-repair.org), the owner reported successful ScanHealth, RestoreHealth and SFC checks while StartComponentCleanup still failed with 1726\. Another report on that page describes CheckHealth working while ScanHealth failed. These are useful distinctions: success in one operation doesn't clear an error from another.

A separate [DISM and SFC discussion](https://www.bleepingcomputer.com/forums/t/581587/dism-and-sfc-error/?ref=winerror-repair.org) began with a source-files-not-found repair error. A later commenter acknowledged that a correctly spaced RestoreHealth command solved their command-entry problem; the original repair failure had no confirmed resolution in that thread. I'd keep those outcomes separate rather than call the thread proof that one command fixes every DISM error.

Stop when the intended check completes and its result gives you a next step. A clean component-store scan with a persistent application problem calls for that application's diagnosis; repairable corruption calls for a completed repair and follow-up checks. The [Windows system repair hub](https://winerror-repair.org/tag/system-repair/) groups the narrower routes without turning every symptom into another scan.