DISM Injecting Windows 10 1709 1803 1809 1903 Updates into a WIM Image

DISM Injecting Windows 10 1709 1803 1809 1903 Updates into a WIM Image

Image File

Injecting Windows 10 1709 1803 1809 1903 Updates into a WIM

Update 29/11/2018: This process has been tested and is working with Windows 10 1903! Your local computer must be running the same OS version as the image you are trying to DISM.

The following guide outlines how to inject Windows Updates into a WIM file using DISM. This process can help ensure newly built machines are patched before being handed out to end users. In addition this can also speed up the process of building Windows 10 as the Windows Update process during your task sequence will be relatively shortened.

  • Create a WIM file directory
Md C:\wim
  • Copy your original WIM to c:\wim
  • Create a Mount directory
md C:\mount
  • Create a temp directory
md C:\temp
  •     Create a update directory
md C:\msu
  • Find what index the Windows 10 Enterprise SKU is within the WIM File:
Dism /Get-ImageInfo /imagefile:C:\wim\install.wim
WIM index
WIM index
  • Mount the WIM file using the required Index number, I am using Index 3 Windows 10 Enterprise:
Dism /Mount-Image /ImageFile:"C:\wim\install.wim" /Index:3 /MountDir:C:\mount
Mount Windows 10 Image
Mount Windows 10 Image

You will notice the mount directory has all the extracted windows files/folders

  • Download the latest Windows 10 update package from Microsoft’s website and place it in the update folder C:\msu. I will be downloading the 4088776 update https://support.microsoft.com/en-us/help/4043454
  • Run the below code to inject your update
Dism /Add-Package /Image:C:\mount /PackagePath:C:\MSU\windows10.0-kb4088776-x64_55756340f1e2c2090f94de6d256eafd75e1cee9c.msu /LogPath:AddPackage.log

Inject Update into WIM File
Inject Update into WIM File
  • Lock in the Updates so they are restored during a recovery:
DISM /Cleanup-Image /Image:"C:\mount" /StartComponentCleanup /ResetBase /ScratchDir:C:\Temp

If you see the command prompt does not progress to 100%, press enter. It sometimes does not refresh although it has completed, very annoying.

Lock Injected Updates into WIM File
Lock Injected Updates into WIM File
  • Unmount the image and commit the changes:
Dism /Unmount-Image /MountDir:"C:\mount" /Commit
Unmount WIM Image
Unmount WIM Image
  • Now upload your WIM to SCCM or MDT, deploy and test.

15 Replies to “DISM Injecting Windows 10 1709 1803 1809 1903 Updates into a WIM Image”

  1. Hi. Thanks for all the above, great work.
    I was wondering if my base Windows 10 image is missing 3-4 Os build (2-3 KB’s) do I need to inject all of them or just the latest? Thanks a mil!

  2. I may be a bit confused, but, the update we’re supposed to inject into the OS, is that just the latest cumulative security update for the OS or is that build 1809/1903 kb update itself that would come to a machine through Windows Update?

    1. Yes its the latest KB update which is essentially a CU. This would come down via Windows Update if you did not inject it. But what we are trying to achieve here is that the update is already applied to the OS. This will save time during your OSD build as the device will not need to spend X amount of minutes applying an update.

  3. Oh, this is just for injecting individual updates, not for upgrading a .wim image from, say, 1803 to 1903, right?

  4. Hello Kam,
    I hope you are doing well!. I need some little help.I have one file(link) with .esd format with a size of about 3.48GB. I got this file from the windows feature update and I want to install this patch in the existing windows 10 version 1803. 
    I  have converted this file to .wim file. but how can I install it?
    Your help will be highly appreciated.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: