Q: I have added drivers into my Windows PE image for my OS installation--so why aren't the drivers available and why does my installation fail, saying the hardware can't be seen?

A: The boot.wim file actually contains two separate images, as shown below:

  1. PS C:\windows\system32> dism /get-wiminfo /wimfile:d:\temp\boot.wim
  2. Deployment Image Servicing and Management tool
  3. Version: 6.3.9600.16384
  4. Details for image : d:\temp\boot.wim
  5. Index : 1
  6. Name : Microsoft Windows PE (x64)
  7. Description : Microsoft Windows PE (x64)
  8. Size : 1,259,685,118 bytes
  9. Index : 2
  10. Name : Microsoft Windows Setup (x64)
  11. Description : Microsoft Windows Setup (x64)
  12. Size : 1,356,525,607 bytes
  13. The operation completed successfully.

Typically, you mount the first image and add your drivers. The problem is that Windows actually boots from and uses the second image, not the first. This means you need to inject your drivers into image 2 and not image 1.