This page has been robot translated, sorry for typos if any. Original content here.

How to unzip a WIM image file

Как распаковать файл образа WIM

The WIM file is a microsoft format in which Windows installation packages are packed inside an ISO image.

Contrary to popular misconception, a wonderful program 7-Zip could not unpack the image from Windows 2012.

However, Microsoft has taken care of this; a special ImageX utility is used to decompress WIM files.

But on Windows 7 and above, you can do with regular means.

First you need to know the name of the image inside the WIM file, because In general, in the general case (and usually this is exactly what happens) several versions of the operating system can be packed:

dism /Get-WimInfo /WimFile:"f:\Inst\Win2012\SW_DVD5_Win_Svr_Std_and_DataCtr_2012_64Bit_Russian_Core_MLF_X18-27640\sources\install.wim"


  • dism - a program for working with WIM files;
  • / Get-WimInfo - the key that instructs her to show information about the available images;
  • / WimFile: - after this key, the full path to the WIM file is specified.

As a result, dism showed the following list:

Index: 1
Name: Windows Server 2012 SERVERSTANDARDCORE
Description: Windows Server 2012 SERVERSTANDARDCORE
Size (bytes): 7,461,623,448

Index: 2
Name: Windows Server 2012 SERVERSTANDARD
Description: Windows Server 2012 SERVERSTANDARD
Size (bytes): 12,176,391,487

Index: 3
Name: Windows Server 2012 SERVERDATACENTERCORE
Description: Windows Server 2012 SERVERDATACENTERCORE
Size (bytes): 7,458,764,649

Index: 4
Name: Windows Server 2012 SERVERDATACENTER
Description: Windows Server 2012 SERVERDATACENTER
Size (bytes): 12,171,118,256

Connecting a WIM image

We find in the given list a suitable image by name, for example, “Windows Server 2012 SERVERSTANDARD”, and mount it into the previously created empty directory “D: \ w2012”:

dism /Mount-Wim /WimFile:"f:\Inst\Win2012\SW_DVD5_Win_Svr_Std_and_DataCtr_2012_64Bit_Russian_Core_MLF_X18-27640\sources\install.wim" /name:"Windows Server 2012 SERVERSTANDARD" /MountDir:D:\w2012

Now you can simply copy the necessary files from this directory.

Disable WIM image

Unmount our image:

dism /Unmount-Wim /MountDir:D:\w2012 /discard

Now you can simply copy the necessary files from this directory.


  • / discard causes all changes to be undone.