Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Deployment Imaging Servicing Management (DISM) Cmdlets in Windows PowerShell

Published: March 30, 2012

Updated: September 30, 2012

Applies To: Windows 8, Windows Server 2012

The Deployment Image Servicing and Management (DISM) platform is used to mount and service Windows® images before deployment. A subset of DISM commands can be used on online Windows images. You can use DISM tools to mount, and get information about, Windows image (.wim) files or virtual hard disks (.vhd or .vhdx). You can also use it to install, uninstall, configure, and update Windows features, packages, and drivers in a Windows image or to change the edition of a Windows image.

This topic introduces the 22 DISM cmdlets available in the DISM PowerShell module. This module is available in Windows® 8 and Windows Server® 2012. On other supported operating systems, you can install the DISM module from the Windows Assessment and Deployment Kit (Windows ADK). For more information about how to use the DISM PowerShell module installed with the ADK, see How to Use DISM in Windows PowerShell.

The DISM platform also includes a command-line tool, DISM.exe, and the DISM API. The command-line tool is available in the Windows Assessment and Deployment Kit (Windows ADK) and includes additional functionality include servicing commands for international settings.

DISM module cmdlets


Cmdlet Description


Adds an app package (.appx) that will install for each new user to a Windows image.


Adds a driver to an offline Windows image.


Adds a single .cab or .msu file to a Windows image.


Deletes all of the resources that are associated with a mounted image that has been corrupted.


Disables a feature in a Windows image.


Dismounts a Windows image from the directory that it is mapped to.


Enables a feature in a Windows image.


Gets information about app packages (.appx) in an image that are set to install for each new user.


Gets information about drivers in a Windows image.


Gets edition information about a Windows image.


Gets information about a Windows image in a WIM or VHD file.


Gets information about optional features in a Windows image.


Gets information about packages in a Windows image.


Mounts a Windows image in a WIM or VHD file to a directory on the local computer.


Removes app packages (.appx) from a Windows image.


Removes a driver from an offline Windows image.


Removes a package from a Windows image.


Repairs a Windows image in a WIM or VHD file.


Applies changes made to a mounted image to its WIM or VHD file.


Changes a Windows image to a higher edition.


Sets the product key for the Windows image.


Applies an unattended answer file to a Windows image.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft