Thursday, May 30, 2013

Updating your WIM file with DISM

If you want to patch up your Windows image file (wim file) with the newest patches you can use the DISM commando. The DISM commando are available in Windows 8 as default or as a part of the WAIK or ADK download from Microsoft.

The first thing you need to do is to download all the updates you want to patch your image with. To do this you can use a tools like Wsus Offline Update

In the wsusoffline\client path you will find all the updates in folders related to the client version you have downloaded (Windows 8 = W62 and x64 version = W62-x64).

You then need to mount the wim file

Get info about the win content:
dism /Get-WimInfo /WimFile:d:\wim\install.wim

Get extended info:
dism /Get-WimInfo /WimFile:d:\wim\install.wim /index:1

Mounting the image:
dism /Mount-Wim /wimfile:d:\wim\install.wim /index:1 /MountDir:d:\Mount

Add Patches to the image:
dism /image:d:\mount /add-package /Packagepath:d:\updates

Dismounting the image:
dism /Unmount-Wim /MountDir:d:\mount /commit
dism /Unmount-Wim /MountDir:d:\mount /discard

My Microsoft Ignite 2019 Activity Summary

Microsoft Ignite 2019 You always get overwhelmed and impressive by Microsoft Ignite, no matter how many times you have been on it. The en...