Q. How do I mount a WIM file using the Deployment Image Servicing and Management (DISM) tool?

John Savill

December 31, 2010

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. You're probably used to using imagex during your Windows Vista days for all your mounting WIM file operations. You can still use imagex, but you now have the option of using the unified DISM tool (which doesn't require the installation of the Windows Automated Installation Kit). To mount an image, use the format

dism /mount-wim /wimfile: /index: /mountdir:

You can optionally add /readonly to make the mount read-only.

The above dism command would be equivalent to the following imagex command:

imagex /mountrw   

So the DISM is a bit more wordy  You can see them both in action below.

D:Temp>dism /mount-wim /wimfile:"d:OS ImagesWindows 7 Ult 64-bitsources"install.wim /index:4 /mountdir:d:tempmount1

 Deployment Image Servicing and Management tool
 Version: 6.1.7600.16385

 Mounting image
 \[=====================
100.0%
================
\]
The operation completed successfully.

C:Program FilesWindows AIKToolsamd64>imagex /mountrw "d:OS ImagesWindows 7 Ult 64-bitsources"install.wim 4 d:tempmount2

ImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.
Version: 6.1.7600.16385

Mounting: \[d:OS ImagesWindows 7 Ult 64-bitsourcesinstall.wim, 4\] -> \[d:temp
mount2\]...

\[ 0% \] Mounting progress

To dismount with DISM, use

dism /unmount-wim /mountdir: \[/commit or /discard\]

For example,

C:>dism /unmount-wim /mountdir:d:Tempmount1 /discard

 Deployment Image Servicing and Management tool
 Version: 6.1.7600.16385

 Image File : d:OS ImagesWindows 7 Ult 64-bitsourcesinstall.wim
 Image Index : 4
 Unmounting image
 \[================
100.0%
=====================\]
 The operation completed successfully.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like