If you’re facing persistent errors, slowdowns, or update failures on your Windows PC, a corrupted system image may be the cause. The DISM /Online /Cleanup-Image /RestoreHealth command is one of the best ways to repair Windows 10 and 11 system images, especially when System File Checker (SFC) fails. The Deployment Image Servicing and Management (DISM) tool is built into Windows and enables administrators to check, clean, and repair Windows images, including Windows Recovery Environment, Windows Setup, and Windows PE (WinPE). This article explains how to use DISM to fix a corrupted Windows system image and optimize PC performance.
What is a Windows Image?
A Windows image is a compressed file that contains all the files, settings, and configurations required to install and run a Windows operating system.
Post Contents :-
What is DISM /Online /Cleanup-Image /RestoreHealth?
The DISM /Online /Cleanup-Image /RestoreHealth is a Windows command-line tool designed to scan and repair the underlying system image your Windows installation uses. This command is especially effective when SFC reports, “Windows Resource Protection found corrupt files but was unable to fix some of them.”
DISM repairs the Windows system image and the component store (WinSxS folder), which is the source that SFC uses to restore system files, ensuring SFC can function correctly afterward.
- Fix corruption SFC cannot repair
- Restore system update reliability
- Improve overall performance and stability
When to Use the DISM 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, which requires an active internet connection.
Run a DISM restore health Scan if SFC Can’t Repair Corrupt Files
Use the DISM command if you encounter:
- Persistent system file corruption errors that SFC cannot fix
- Frequent system crashes (Blue Screen errors)
- Windows freezing, slow performance, or not responding
- Windows Update failures or updates stuck during installation
Tip: 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.
Using DISM Commands to Repair Windows Image
Ensure your device is connected to a stable and working internet connection, as DISM uses Windows updates as a Source to repair the system image. Now let’s explore Different DISM command-line options and how they can be used to repair the Windows system image.
There are three main DISM options for scanning and repairing your Windows system image:
- CheckHealth
- ScanHealth
- RestoreHealth
Open Command Prompt as administrator (press Windows key + S, type “cmd,” right-click, select “Run as administrator”) and run the following commands:
- DISM /Online /Cleanup-Image /CheckHealth
- DISM /Online /Cleanup-Image /ScanHealth
- DISM /Online /Cleanup-Image /RestoreHealth
Note: DISM /CheckHealth only detects corruption within the system image, while /ScanHealth performs a more advanced scan to determine whether the system image has issues.
DISM ScanHealth Command
DISM Command line With /ScanHealth Switch checks for component store corruption and records that corruption to the C:\Windows\Logs\CBS\CBS.log but no corruption is fixed or repaired using this switch. This is useful for logging what if any, corruption exists.
Here’s what the DISM /ScanHealth command does:
- Scan the Windows image for corruption, missing files, or other issues within the system.
- Verifies the integrity of the component store, which is a repository of Windows system files located in the %WinDir%\WinSxS folder.
- Generates a report that indicates whether any corruption or problems were found in the Windows image.
To run the command, open the Command Prompt as administrator, Then Type the command below and hit the Enter key.
Dism /Online /Cleanup-Image /ScanHealth

This will start the scanning process for system image corruption. This could take 10-15 minutes.
DISM RestoreHealth Command
The DISM command with the /RestoreHealth switch scans the Windows image for corruption and automatically performs a repair. This operation takes 15 minutes or more, depending on the level of corruption.
Here’s what the DISM /RestoreHealth command does:
- Initiates a scan of Windows images to identify corruption or other issues within the system.
- If it detects corrupt files, and attempts to retrieve the necessary files from Windows Update to automatically repair the image.
- DISM command attempts to repair the Windows image by replacing the corrupted or missing files with the correct versions from the source.
To run the DISM RestoreHealth command, open an Administrator Command Prompt, type the Command below, and press Enter.
Dism /Online /Cleanup-Image /RestoreHealth
Since the /restorehealth switch relies on Windows Update to provide repair files, ensure the system has an active internet connection when running the command.
The command above will attempt to use Windows Update to replace the damaged files. This process takes a long time to complete. If the problem has also affected the Windows Update components, you’ll need to specify a source containing known-good files to repair the image.
Note: Depending on the system’s configuration and the extent of corruption, the dism /online /cleanup-image /restorehealth command may take some time to complete. Be patient and avoid interrupting the process prematurely.
Using Local Source Files with DISM
If your PC does not have internet access or Windows Update cannot provide the required files, use a local Windows installation source (such as a USB drive or a mounted ISO).
- Download the correct Windows 11 ISO (32-bit or 64-bit, matching your system).
- Mount the ISO file (right-click the ISO File, Select Mount) and note the drive letter (e.g., D:).
- Run the following command (replace D with your ISO’s drive letter)
DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\Install.wim /LimitAccess
This will perform a Windows image repair using the known good files included within the install.wim file using the Windows 10 installation media, without using Windows Update as a source to download the required files for repair.
Wait until the Scanning Process is 100% complete. Once the process is complete, DISM will create a log file at %windir%/Logs/CBS/CBS.log and record any issues the tool finds or fixes. After that, restart your computer to take a Fresh Start.
After DISM: Run System File Checker (SFC)
Once DISM repairs the Windows image, you should run SFC to resolve any remaining corrupted files.
Open Command Prompt as administrator, type Command sfc /scannow, and hit the enter key to run the System File Checker Utility. This will check and repair missing or corrupted system files.
SFC will scan and restore any missing or corrupted system files using a good copy from a special cache folder: %WinDir%\System32\dllcache.
Wait for 100% completion of all scans and repairs. Restart your computer after both DISM and SFC operations. Your system should now be stable and free from file corruption errors.
Frequently Asked Questions (FAQ)
Q1: What does DISM /Online /Cleanup-Image /RestoreHealth actually fix?
A: It repairs corruption in the Windows system image that can cause errors, crashes, or failed updates.
Q2: Can I run DISM without internet access?
A: Yes, but you must provide a local repair source using the /Source option and valid Windows installation files.
Q3: How long does the process take?
A: Most scans and repairs finish in 15–30 minutes, depending on your PC and the extent of corruption.
Q4: Is it safe to interrupt the DISM process?
A: No. Let DISM complete fully to avoid further system issues.
Q5: Do I need to run SFC after DISM repairs?
A: Yes. This ensures all system files are restored and Windows is fully healthy.