You may encounter the following scenarios when servicing a .WIM image
- Size of .WIM increases with each servicing change
- Size of .WIM does not decrease after removing files
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
You may encounter the following scenarios when servicing a .WIM image
In order to remove the unnecessary resources files from the .WIM, you will need to perform a imagex /export on a computer that has the Windows Automated Installation Kit (AIK) installed.
For example:
imagex.exe /export old.wim X new.wim "new wim"
Note:
To view the images present in a .WIM, you can use the following command:
imagex /info
More information on imagex.exe commands can be found at the following site:
http://technet.microsoft.com/en-us/library/cc749447(WS.10).aspx
Additionally you may see a slight performance improvement if you are booting from the .WIM(For example WINPE) by exporting it. This process aligns the files and ensures there is no fragmentation.
For more information on the WIM format see the following link:
http://www.microsoft.com/downloads/details.aspx?familyid=184706A3-6E05-4D9D-A034-830F4290EE42&displaylang=en
To download the Windows 7 WAIK see the following link:
http://www.microsoft.com/downloads/details.aspx?FamilyID=696dd665-9f76-4177-a811-39c26d3b3b34&displaylang=en
Keywords: KB2163773