How to inject drivers with DISM.exe

10-07-10

Microsoft seem to have reinvented the wheel once again and retired peimg.exe from WAIK. WAIK v 2.0 has replaced peimg.exe with dism.exe (Deployment Image Servicing and Management tool) so here is the cliff notes on how to inject drivers with dism

# Get info on the image you want to mount and found out the INDEX Number
dism /get-wiminfo /wimfile:C:\Images\install.wim

# Mount the WIM image at C:\MountPath
dism /mount-wim /wimfile:C:\Images\install.wim /index:4 /mountdir:C:\MountPath

# Check if its mounted (or not)
dism /get-mountedwiminfo

#check avaliable commands for mounted image
dism /image:C:\MountPath /?

# Add driver HELP
dism /image:C:\MountPath /add-driver /?

# Install Driver
dism /image:C:\MountPath /add-driver /Driver:E:\PathTo\Driver\InfFiles /recurse

# Unmount and Commit changes to image
dism /unmount-wim /mountdir:C:\MountPath /commit

And thats how you inject drivers with peimg.exe’s replacement.

P.S. Incase your wondering how to get the inf files from a package (exe file) you downloaded from a vendors website I recommend using 7-zip to extract the contents of the setup file.

This entry was posted on Thursday, October 7th, 2010 at 2:05 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply