Monday, 22 April 2013

ConfigMgr 2012 / SCCM 2012 SP1 Step by Step Guide Part 13a: Updating Image with DISM

Back to main menu

Consider the scenario. You have worked hard and perfected your image. You have created your task sequence and everything works well. However your boss now decides that he needs a registry setting changed. What to do you? Do you start again? Absolutely not. You use DISM (Deployment Image Servicing and Management).

With DISM you can carry out many changes to your WIM file, including:

Edit Registry
Add Files and Folders
Enable or disable features
Add drivers

The steps are as follows:

Create a folder, I called mine "DISMMount"

Open a command prompt

Type the following command and DISM mounts your WIM into the staging folder.

dism /mount-wim /wimfile:E:\Source\OSD\CapturedImage\Win7x64.wim /index:2 /mountdir:E:\DISMMount

Note that you can now browse the folders of your wim file in Windows Explorer. I have added a text file to the path shown and renamed it mms.cfg . This disables the notifications for Adobe Flash updates. See mms.cfg below.

Now type the following at your command prompt

reg load HKLM\Win7x64 c:\mount\windows\system32\config\software

The wim registry has now been mounted and is available as below

Open your own registry and browse as shown. Note that I can disable EnableJavaUpdate

When you are finished making changes you have to dismount your wim and commit the changes as follows:

dism /unmount-wim /mountdir:E:\DISMMount /commit

When the process finishes the DISMMount folder is empty and the changes have been saved to your WIM.

You now have to reload the WIM in Config Mgr

Don't forget to re-distribute the new version of the image afterwards.

Note that this process is sometimes necessary as Sysprep can strip out registry customisations while capturing an image.


  1. Hi,

    I am srikanth, i need help to format the disk, The laptops HDD are encrypted by "Shophos" standalone version, so need to format the disk with ZTI, pls let me know how to do it, thanks for your help

    1. Hard Drive Encryption can play havoc with your imaging process. However, if you are just using software encryption you may be successfully able to format the drive as part of the task sequence.

      If not you have a couple of choices:

      1. Decrypt the drive in advance
      2. Format the drive in advance (use an old XP CD)

  2. Thanks, I will try and get back with few more details.