How to inject a driver on WINPE 3.0 Image

If you have a bootable WINPE 3.0 Image (Win7 Sources), often you also need the drivers for the computer you are booting image to.More likely you will need storage and ethernet drivers.So below i will describe some simple steps to be able to achieve this.

First of all you will need to download WAIK Tools from Microsoft.Download them from here:

Install them and follow the steps below.

Then find BOOT.WIM file from your bootable WINPE 3.0 DVD or USB stick.Make a directory on your hard disk like this G:\TEMP.Create also 2 subfolders G:\TEMP\MOUNT and G:\TEMP\DRIVERS.Copy BOOT.WIM from DVD to G:\TEMP\ then run the following command from DOS prompt:

Dism.exe /mount-wim /wimfile:C:\temp\boot.wim /index:1 /mountdir:g:\temp\mount

Now your BOOT.WIM image is mounted on g:\temp\mount.Copy your drivers on g:\temp\drivers subfolder.You will need .inf files included on them.So now a example let’s say that we have copied a drivers on G:\temp\drivers\VM_SCSI Driver.Inside this folder there is a file called vmscsi.inf.The command to inject the driver should look like this:

dism /image:”G:\Temp\mount” /add-driver /driver:”G:\temp\drivers\ VM_SCSI Driver\\vmscsi.inf” 

You should get a successfully completed message after this, if not then check if your folder/file paths are correct.Finally dismount your BOOT.WIM image and copy it back on your original DVD or USB stick media and overwrite the old one.

Dism /unmount-wim /Mountdir:G:\Temp\mount /commit