Using DISM to inject Windows updates into an image (.wim file)

Problem: How do inject Windows updates into a .wim file?

Solution:

First you need to mount the image file, this is achieved by running the following:

dism /mount-wim /wimfile:<YourImage File.wim> /Index:1 /mountdir:"C:\temp\Mount"

 

You then need to specify the package path to which you have already downloaded the windows updates from Microsoft:

DISM /image:"C:\temp\Mount" /Add-Package /Packagepath:"C:\temp\updates"

 

All you need to do now is commit the changes to the original .wim file:

dism  /unmount-wim /mountdir:"C:\temp\Mount" /commit

 

Then clean-up the image:

DISM /Cleanup-Wim

Leave a Reply

Your email address will not be published. Required fields are marked *