DISM Injecting Windows 10 1709 1803 1809 1903 Updates into a WIM Image
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

- 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

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

- 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.

- Unmount the image and commit the changes:
Dism /Unmount-Image /MountDir:"C:\mount" /Commit

- Now upload your WIM to SCCM or MDT, deploy and test.
Kam is a Azure and Microsoft Modern Desktop Certified Administrator and Udemy Intructor. He is a solution architect and served clients ranging from educational, private and government establishments in the UK. Kam has worked within the IT industry for the last 7 years building his experience over a variety of products such as DirectAccess, Always On VPN, SCCM, Hyper-V and now focusing on Azure and Modern Desktop/Mobile Device Management.
15 Replies to “DISM Injecting Windows 10 1709 1803 1809 1903 Updates into a WIM Image”
Where do you get the 1809 MSU file from – cant find it anywhere!
Hi @techgeekshome, you can download the updates from Microsoft here is the link to the latest Windows 10 1809 update, https://support.microsoft.com/en-gb/help/4480116
You can also download updates for previous versions of Windows 10.
Thanks
Kam
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!
Hi Darko, you just need to install the latest KB as they are cumulative.
Thanks
Kam
Thanks for the post, saved me hours of time 🙂
Windows SSU Updates are required to get it running smoothly now – see https://support.microsoft.com/de-de/help/4099479/windows-10-update-history
Can anyone please help me with the link for build 1903? I just can’t find it…
Hi Tony, You can download the build for 1903 from your Volume licensing portal or Microsoft Partner Benefits. If you don’t have access to those portals then you can download the trial version found here: https://www.microsoft.com/en-gb/evalcenter/evaluate-windows-10-enterprise
I can’t find the 1903 KB at all, can someone help?
Thanks!
Hi, the latest 1903 CU update can be found here: https://support.microsoft.com/en-us/help/4507453
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?
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.
Oh, this is just for injecting individual updates, not for upgrading a .wim image from, say, 1803 to 1903, right?
Yes this is for injecting Cumulative Updates into your WIM image. This should not be used for upgrading from 1809 to 1903.
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.