Join myITforum Community

I acknowledge and agree to Penton's Terms of Service and to Penton's use of my contact information to communicate with me about offerings by Penton, its brands, affiliates and/or third-party partners, consistent with Penton's Privacy Policy.

By clicking below, I acknowledge and agree to Penton's Terms of Service and to Penton's use of my contact information to communicate with me about offerings by Penton, its brands, affiliates and/or third-party partners, consistent with Penton's Privacy Policy.

Offline WIM patching with DISM: a more automated method

This is a request that I get fairly often, and one that I’ve been working on for a while. If you have an existing WIM and just need to update it with the latest patches that you have already deployed, it can be done quickly and easily with DISM. I have seen several posts about injecting a single patch or downloading and copying patches to a single location, but if you already have them sitting on your ConfigMgr 2007 server, there’s no need to make extra copies.

First of all, you need to set up the folder structure. I use a base folder named WIMs. Within that folder, I have one batch file and one subfolder for each operating system type, with a common naming convention. For this example I’ll use 7x64SP1.

Drop the WIM file in the subfolder with the same name.

Edit the 3 variables in the Batch file attached at the end of this post:

REM =================
REM EDIT THIS SECTION
REM =================

REM IMAGETYPE IS THE SUBFOLDER AND WIM FILE NAME
SET IMAGETYPE=7X64SP1

REM SEARCH DEFINES WHAT UPDATE FILES YOU WANT TO APPLY
SET SEARCH=Windows6.1*-x64.cab

Open a command prompt *as administrator* and brows to the WIMs folder, then call off the batch file.

It will make a copy of your source wim including the current date in the name, mount it, patch it, and unmount it when it’s finished. Note that it will temporarily map an X drive to where your patches reside. The entire process can take a long time there are a lot of applicable patches, but once you launch the batch file the rest happens on its own. Go get some coffee, and come back in a while to see it complete.