Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Deployment Imaging Service and Management Tool (DISM) is an essential utility in the Windows environment, used for servicing and preparing Windows images. It can be used to mount and service a Windows image or virtual hard disk. DISM is also useful for capturing, deploying, and managing Windows images. In this article, we will explore how to use DISM in various scenarios.
Examples:
Checking the Health of a Windows Image:
You can use DISM to check the health of your Windows image. This is useful for identifying any corruption or issues within the system files.
DISM /Online /Cleanup-Image /CheckHealth
This command checks the image for any corruption but does not perform any repairs.
Repairing a Windows Image:
If you find issues with the image, you can use DISM to repair it. The following command will scan the image for corruption and perform any necessary repairs:
DISM /Online /Cleanup-Image /RestoreHealth
This command contacts Windows Update to download and replace corrupt files.
Mounting a Windows Image:
To service an offline image, you first need to mount it. Here’s how you can mount a Windows image using DISM:
DISM /Mount-WIM /WimFile:C:\images\install.wim /Index:1 /MountDir:C:\mount
This command mounts the image located at C:\images\install.wim
to the directory C:\mount
.
Adding a Driver to an Offline Image:
You can add drivers to an offline image using DISM. This is particularly useful for ensuring that all necessary drivers are included in your deployment image.
DISM /Image:C:\mount /Add-Driver /Driver:C:\drivers\mydriver.inf
This command adds the specified driver to the mounted image.
Unmounting and Committing Changes to an Image:
After servicing an image, you must unmount it and commit the changes. Here’s how:
DISM /Unmount-WIM /MountDir:C:\mount /Commit
This command saves the changes made to the image and unmounts it.