The following procedure demonstrates how to use the Deployment Image Servicing and Management (DISM) tool to add a device driver (.inf) to an offline Windows® PE image. Before you can run a DISM command, you must first mount the Windows PE image.
To add a device driver to an offline Windows PE image
- Mount the base image by using the DISM tool to a local
Windows PE directory. For example:
Dism /Mount-WIM /WimFile:c:\winpe_x86\winpe.wim /index:1 /MountDir:c:\winpe_x86\mount
- Add the .inf file to the base image by using the dism
command with the /Add-Driver option. For example:
Dism /image:<path_to_image> /Add-Driver /Driver:c:\winpe_x86\mount\Windows\driver.inf
- Repeat steps 1 and 2 for each additional device driver.
- You must unmount the image after you have modified it.
dism /unmount-wim /Mountdir:c:\winpe_x86\mount /commit
After you unmount the image, you can burn it to the designated media.
To learn more about driver servicing commands using DISM, see Driver Servicing Command-Line Options.