DISM for Windows 7, the useful bits

I’ve been having to do the old DISM image manipulation for a while, but it seems I have to do so many other things I keep getting lost on the main commands that I use regularly, so this is them posted here.  It’s the mounting of the image, the offline driver push, software registry hive loading and unloading and finally the dismount and commit.

Mount Image:

Dism /Get-WimInfo /WimFile:C:\winpe_x86\images\buildfile.wim
Dism /mount-wim /WimFile:C:\winpe_x86\images\buildfile.wim /index:1 /MountDir:C:\winpe_x86\mount

Drivers Install Image:

Dism /Image:C:\winpe_x86\mount /Add-Driver /Driver:c:\winpe_x86\drivers /Recurse


Mount Registry:

reg load HKLM\buildfile c:\winpe_x86\mount\windows\system32\config\software

regedit (do your tinkering in HKLM\buildfile)

reg unload HKLM\buildfile


Unmount and Commit Image:

Dism /Unmount-Wim /MountDir:C:\winpe_x86\mount /Commit

Leave a comment