Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use DISM Command Line tools to repair Windows 10 Images

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces how to use DISM command line tool to repair Windows 10 image, the content is very detailed, interested friends can refer to, hope to be helpful to you.

A "deploy Image Services and Management" command line tool called DISM is built into Windows 10, which is built in from Windows 8 to Windows 10.

The DISM command line tool can be used to repair and prepare Windwos images, including the Windows recovery environment, Windows installer, and Windows PE, and use DISM to repair operating system recovery images and even virtual disks (VHD).

We have previously introduced the use of SFC to repair Windows 10 system files, but when you encounter a problem that SFC cannot fix, it is likely that it cannot get the necessary normal files. In this case, you can use DISM to repair the Windows image (.wim) and then use SFC to solve the problem.

How to use DISM to repair Windows 10 Images

Using the DISM command line tool to repair the Windows 10 image, there are mainly three phases: CheckHealth, ScanHealth and RestoreHealh. You must perform the whole repair process sequentially.

DISM CheckHealth option

The / CheckHealth switch on the DISM command line, as its name implies, is used to detect all corrupted files. It only performs a health check and does not perform any repairs:

1. Click Windows + X Shortcut-Select Command prompt (Administrator)

two。 Execute the following command on the command line to detect:

DISM / Online / Cleanup-Image / CheckHealth

DISM ScanHealth option

The / ScanHealth switch on the DISM command line, unlike / CheckHealth, is mainly used to scan for corrupted parts of the Windows image file. Depending on your PC performance and environment, it may take up to 10 minutes to complete.

1. Click Windows + X Shortcut-Select Command prompt (Administrator)

two。 Execute the following command on the command line to detect:

DISM / Online / Cleanup-Image / ScanHealth

DISM RestoreHearlh option

Unlike the first two commands, the / RestoreHearlh switch on the DISM command line automatically attempts to fix errors in the Windows image file, and the / RestoreHearlh option takes longer to execute because it has to perform the repair process, which takes about 20 minutes.

1. Click Windows + X Shortcut-Select Command prompt (Administrator)

two。 From the command line, execute the following command to detect and repair:

DISM / Online / Cleanup-Image / RestoreHealth

When using the / RestoreHealth or / ScanHealth parameters of the DISM command line, the progress may stop at 20% or 40%. Don't worry, this is normal, and the operation can be completed in a few minutes.

When you execute the above command, DISM will automatically try to use Windows Update to replace the corrupted file. However, if there is a problem with all your Windows Update components, you must specify a normal Windows image (.wim) as the source of the fix.

Specify DISM repair source

The DISM command line supports using the / RestoreHealth parameter while using / Source to specify the native system image as the repair source. When using this feature, it is recommended that you download the official native Windwos 10 ISO and extract the install.wim file as the repair source. The ISO download and extraction process is very simple, so I won't cover it here.

1. Click Windows + X Shortcut-Select Command prompt (Administrator)

two。 Detection and repair can be done by executing the following command on the command line:

DISM / Online / Cleanup-Image / RestoreHealth / Source: file path\ install.wim

3. You can also use the following command to restrict the use of Windows Update when specifying the repair source:

DISM / Online / Cleanup-Image / RestoreHealth / Source: file path\ install.wim / LimitAccess

Everyone pay attention to change the path to your own, do not copy.

This method can directly use the install.wim file in the Windwos 10 installation media as the repair source without repairing through Windows Update.

Using install.ESD files with DISM

Of course, you can also use install.esd as the repair source instead of using the install.wim file. If you upgraded to Windows 10 from an earlier version or downloaded the install.esd file directly, you can also use it with the DISM command.

Since install.esd is only an encrypted version of the install.wim file, it is used in exactly the same way as the install.wim file, except that the extension has changed, and DISM will write the relevant log files to the% windir%/Logs/CBS/CBS.log log.

At this point, we have made it clear how to repair the Windows image file.

On how to use DISM command line tools to repair Windows 10 image sharing here, I hope the above can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report