WINDOW 11

How to Repair Windows 11 Image with DISM Commands

2 SOLUTIONS
NOVEMBER 09, 2024

DISM (Deployment Imaging Service and Management) is the ultimate deployment and servicing tool in Windows 11 that fixes corrupted system images, typically caused by malware, a faulty update, or other unexpected shutdowns. It helps repair the system's stability and performance without requiring the full installation of Windows.

Deepak Yadav
Deepak Yadav

Expert, Head of Windows Circle

Fix Corrupted Files

Repairs missing or damaged system files.

Improve Stability

Reduces system crashes and errors.

Ease of Use

Simple commands for quick repairs.

Using the DISM Commands

4 STEPS EASY 2 MIN

1/2

METHOD
Method 1
Overview

To repair a Windows 11 image using DISM commands is as shown below. This standard repair process works well for common issues with system file corruption.

Method 1 of 2
Next Method

Open Elevated Command Prompt

Press the Windows key, then search for "cmd".Right-click on Command Prompt and select Run as Administrator.

Method 1 of 2
Step 1 of 4

Check System Health

At the Command Prompt, type the following command and press Enter:

DISM /Online /Cleanup-Image /CheckHealth

This command checks your system health and does not make any changes.

If everything is in order, you will see the message: "No component store corruption detected. The operation completed successfully."

Method 1 of 2
Step 2 of 4

Scan for Infected Files

If the CheckHealth scan detects a problem, run the following command to perform a deeper scan:

DISM /Online /Cleanup-Image /ScanHealth

This command performs a thorough scan for system corruption. It may take a few minutes, and if any issues are found, they will be repaired automatically, displaying: "Corruption detected. The operation completed successfully."

Method 1 of 2
Step 3 of 4

Correcting the Image

To fix any issues detected in the previous step, execute the following command:

DISM /Online /Cleanup-Image /RestoreHealth

Wait for the process to complete, then restart your computer to apply the changes.

Caution: A local source can save time and will not make mistakes in case the DISM command fails to retrieve some files online.

Method 1 of 2
Step 4 of 4

DISM RestoreHealth with Local Source

5 STEPS EASY 2 MIN

2/2

METHOD
Method 2
Overview

If your PC is offline or the online source is unavailable, you can use a local source to repair DISM. Follow these steps:

Method 2 of 2

Download Windows 11 ISO

Download the Windows 11 ISO from the Microsoft website.

Select the editor for download.

Now, click on Download button (as shown above image).

After clicking the download button, your request will be validated. This may take a few minutes. Avoid refreshing or navigating back, as it will cancel the request.

Update: Windows 11 ISOs for Arm64 devices will be made available in the coming weeks.

Method 2 of 2
Step 1 of 5

Mount the Windows 11 ISO

Right-click the ISO file and select Mount to mount the image as a virtual drive.

Method 2 of 2
Step 2 of 5

Determine the Drive Letter

Open File Explorer and note the drive letter of the mounted ISO (e.g., D:).

Method 2 of 2
Step 3 of 5

Run the DISM Command

Open Command Prompt as Administrator. (view details in method 1)

Enter the following command, replacing D: with your ISO’s drive letter:

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

This command uses the mounted ISO as a local source for the repair process.

Method 2 of 2
Step 4 of 5

Restart After Completion

Once the repair is done, restart your PC to apply the changes.

Method 2 of 2
Step 5 of 5

Additional Tips

Image

Run Commands in Safe Mode: If DISM commands fail or get stuck, boot into Safe Mode to limit background processes and avoid conflicts.

Create a Backup: Always back up your system or important files before starting repairs to ensure you can recover if anything goes wrong.

Check for Windows Updates After Repair: After completing the repair, check for Windows updates to ensure you have the latest patches and improvements.

Use Logs for Troubleshooting: If issues persist, check the logs at C:\Windows\Logs\DISM\dism.log for detailed error information that can help diagnose problems.

Consider System File Checker (SFC): Run SFC (sfc /scannow) after DISM to further detect and repair any system file corruption.

Methods (2)

Using the DISM Comm...
4 Steps
DISM RestoreHealth ...
5 Steps