Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Use Deployment Imaging Service and Management Tool (DISM) in Windows

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.