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

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.

No comments:

Post a Comment