How to Inject Drivers into Windows PE 2.0 in 5 Minutes
(or into a
Windows Vista Image)
Prepared by Ian Matthews
Sept 6, 2007, Last Updated Dec 15, 2008
This is the shortest documentation I
could create on how to inject drivers into Win PE2.0 (or Vista WIM
screenshot beside STEP 5 displays the 3 critical commands I used to
load nVidia nForce 4 ethernet drivers to my WinPE boot.wim.
Create a folder called
C:\TEMP. Then create two subfolders; one called DRIVERS
and the other called MOUNT
your Windows Vista DVD/CD, and copy DRIVE:\SOURCES\BOOT.WIM to
and rename it CUSTOMBOOT.WIM
Download the drivers you need
and put them in their own subfolder under C:\TEMP\DRIVERS (i.e.
C:\TEMP\DRIVERS\ETHERNET\ and C:\TEMP\DRIVERS\SOUND\ ) .
Don't put the driver .EXE
file into that folder, you need to expand that .EXE and get
the driver files out of it.
WinRAR and WinZIP work
well for extracting .EXE files containing drivers. For
WinZip you simply drag the .EXE with the RIGHT MOUSE a few
pixels and you will see WINZIP, EXTRACT TO... in the context
Make sure you do not
change the folder structure your driver .EXE file may have
Use Vista (or at least
WinXP drivers); DOS drivers will NOT work.
Start. Microsoft Windows AIK, Windows PE Tools Command Prompt.
This assumes you have the Windows Automated Installation Kit
installed. UPDATE: DEC 2008 - Click
HERE to download the new Microsoft Desktop Deployment
(i.e. expand) CUSTOMBOOT.WIM with the following command:
Inject your drivers using the
Commit your update and
recompress your updated image using the following command:
Congratulations you are done! If you
want to push this to a Windows Deployment Services (WDS) Server
Start your WDS Console, right click on the
boot image you wish to update, and select DISABLE
Right Click on that same boot image and select
REPLACE IMAGE. The browse to wherever you have your
CUSTOMBOOT.WIM and select it.
in my case I copied CUSTOMBOOT.WIM across
the network from the VM I created it on to my W2003 WDS
server prior to the REPLACE IMAGE STEP
this process will
update the existing BOOT.WIM and REENABLE it. There is
no need restart services
You could delete your CUSTOMBOOT.WIM but I
keep mine in case I want to add more drivers in the future.
Much of the above article was based on
which you may find useful if you have further questions.