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.
- Download the desired drivers
- 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)
- Create a mount point folder on your local drive (e.g., C:\mount)
- Open elevated command prompt
- 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
- 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
- Inject the drivers:
dism /image:c:\mount /add-driver /driver:c:\x64 /Recurse
- Unmount
dism /unmount-wim /mountdir:c:\mount /commit