Add a Device Driver to an Offline Windows PE Image

The following procedure demonstrates how to use the PEImg tool to add a device driver (.inf) to an offline Windows PE image. Before you can run any PEImg command, you must first apply or mount the Windows PE image by using ImageX. Windows PE provides a base image (Winpe.wim) that you can customize. For an example of how to build custom Windows PE images, see Windows PE Walkthroughs.

To add a device driver to an offline Windows PE image

  1. Apply the base image (Winpe.wim) by using ImageX to a local Windows PE directory. For example:

    imagex /apply WinPE.wim 1 c:\winpe_x86\mount\


    imagex /mountrw WinPE.wim 1 c:\winpe_x86\mount\
  2. Add the .inf file to the base image by using the peimg /inf command. For example:

    peimg /inf=<path> c:\winpe_x86\mount\Windows

    where <path> is the location of the .inf file.

  3. Repeat steps 1 and 2 for each additional device driver.
    When you finish customizing the image, prepare the image for deployment by using the peimg /prep command.

After you prepare the image, you can burn the image to the designated media. First, recapture or commit the local Windows PE directory into a .wim file by using ImageX, create an .iso file by using one of the provided tools, and then burn the .iso file to the appropriate media.

See Also


Prepare a Windows PE Image
PEImg Command-Line Options