Featured Resource:

line

Newsletter

Email Address:


line

Ask the Expert

Have a question for our resident expert? Email your questions to Bob or post in the Forum.

« Working with Windows PE Images | Main | Quickly Run Applications in Vista »

Installing Drivers to a File Based Image (WIM)

As it is the intention of Windows PE to be as small and light as possible, it does not come with a huge number of network card drivers. One missing driver is the VMware (AMD Virtual) network card. To add it, you can use the peimg utility. Just give it the path to the inf file and you can install the driver right into your mounted file based image...

Prepare the folder structure needed (if you have not already):
copype.cmd x86 c:\images\winpe

Mount the image for editing:
imagex /mountrw c:\images\winpe\winpe.wim 1 c:\images\winpe\mount

Now get your VMware NIC driver. The easiest way is to start up a VMware session and choose the “Install VMware Tools” option. Don’t worry if you already have them installed—all this does is mount a VMware Tools installation CD (which may autorun to perform an installation, for which you may just press “exit”). In the CD that appears in your VMware session, go to: E:\Program Files\VMware\VMware Tools\Drivers\vmxnet\win2k\ and copy these files to your host system. Now we can use the peimg utility to mount the driver.

Install the driver:
peimg /inf=\vmware-nic.inf c:\images\winpe\mount\windows

Now that you have the NIC driver installed, close that image back up and recreate your ISO…

Unmount image:
imagex /unmount c:\images\winpe\mount /commit

Copy your new wim over the boot.wim:
copy c:\images\winpe\winpe.wim c:\images\winpe\iso\sources\boot.wim /y

Build your new ISO:
oscdimg –n –bc:\images\winpe\etfsboot.com c:\images\winpe\iso c:\images\winpe\winpe.iso

Library Resources

line
line

Bob Kelly's Bio:

Bob Kelly is the founder of AppDeploy.com — a resource focused on desktop management products and practices. He is author of the Start to Finish Guide to Scripting with KiXtart and The Definitive Guide to Windows Desktop Administration. He is also president and co-founder of iTripoli, Inc. who provide AdminScriptEditor.com, home to an integrated suite of scripting tools and a shared library of scripts and language help. Not enough? For more on Bob click here.