Inject Drivers into a Windows 7 PE Image

One scenario – booting a system using a USB Windows PE flash drive, the same flash drive then could not be read within Windows PE. This was because the PE image had no USB 3.0 drivers. The solution was to inject USB 3.0 drivers into the standard Windows 7 PE image.

  1. Download the desired drivers
  2. Extract the folder that contains the .cat, .inf, etc. files for the drivers (e.g., files can be extracted from a .exe using 7zip). Place them in a temporary folder (C:\x64)
  3. Create a mount point folder on your local drive (e.g., C:\mount)
  4. Open elevated command prompt
  5. Get the name of the Windows PE system by pointing dism to the wim file (which could be on a portable media or your local drive). For example:
    dism /get-wiminfo /wimfile:c:\winpe_amd64\iso\sources\boot.wim
  6. Mount it. In this example the name determined from previous step was¬†“Microsoft Windows PE (x64)”
    dism /mount-wim /wimfile:c:\winpe_amd64\iso\sources\boot.wim /Name:"Microsoft Windows PE (x64)" /mountdir:c:\mount
  7. Inject the drivers:
    dism /image:c:\mount /add-driver /driver:c:\x64 /Recurse
  8. Unmount
    dism /unmount-wim /mountdir:c:\mount /commit
This entry was posted in Uncategorized. Bookmark the permalink.