Deployment Image Servicing and Management (DISM) is a new
command-line tool introduced for the Windows® 7 operating system that can be
used to service a Windows image or to prepare a Windows Preinstallation
Environment (PE) image. It replaces Package Manager (pkgmgr.exe), PEimg, and
Intlcfg that were included in Windows Vista®. The functionality that was
included in these tools is now consolidated in DISM, and new functionalities have
been added to improve the experience for offline servicing.
DISM can be used to service Windows Vista® with Service
Pack 1 (SP1) and Windows Server® 2008 and provides the same
functionality that Package Manager provided. DISM provides additional
functionality when used with Windows 7 and Windows
Server 2008 R2.
You can use DISM to:
- Add, remove, and enumerate packages.
- Add, remove, and enumerate drivers.
- Enable or disable Windows features.
- Apply changes based on the offline servicing
section of an unattend.xml answer file.
- Configure international settings.
- Upgrade a Windows image to a different edition.
- Prepare a Windows PE image.
- Take advantage of better logging.
- Service down-level operating systems like
Windows Vista with SP1 and Windows Server 2008.
- Service all platforms (32-bit, 64-bit and
Itanium).
- Service a 32-bit image from a 64-bit host and
service a 64-bit image from a 32-bit host.
- Make use of old Package Manager scripts.
DISM Command-Line Options
To service a Windows image offline, it must be applied or
mounted. For example, WIM images can be mounted using the Windows Image (WIM)
commands within DISM, or applied and recaptured using ImageX.” You can also use
these commands to list the indexes or verify the architecture for the image you
are mounting. After you update the image, you must unmount it and either commit
or discard the changes you have made.
The following commands can be used to mount, unmount, and
query WIM files. These options are not case sensitive.
The base syntax for nearly all DISM commands is the same.
After you have mounted your Windows image, you can specify any DISM options,
the servicing command that will update your image, and the location of the
mounted image. You can use only one servicing command per command line. If you
are servicing a running computer, you can use the /online option instead of
specifying the location of the mounted Windows image.
The base syntax for DISM is:
DISM.exe {/image:<path_to_image> | /online}
[dism_options] {servicing_command} [<servicing_argument>]
Check out the online
demonstration of DISM.