Tag Archives: install.wim

Adding drivers to a Windows 8.1 install.wim file

I have a Windows 8.1 Enterprise image (32-bit) and wanted to install the vendor specific (Dell) drivers into it, so I can use the image on a new device without having to manually faff around loading them separately. I downloaded the driver cab (5830-win8.1-A00-9Y5Y5.CAB) and attempted to run it on a Windows 8 (8.0) PC without any luck. 

I did the following:

  1. Open Powershell with Administrator rights.
  2. Made a folder called c:\image
  3. Made a folder called c:\drivers and copied the contents of the CAB to that location
  4. Ran “mount-windowsimage -path c:\image -imagepath e:\sources\install.wim -index 1”
  5. Ran “add-windowsdriver -path c:\image -driver .\drivers”


At that point it falls over with errors like the following:

add-windowsdriver : DismOpenSession failed. Error code = 0xc0000135

At line:1 char:1
+ add-windowsdriver -path c:\images -driver c:\drivers -logpath c:\log\drivers …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:)[Add-WindowsDriver], COMException

+ FullyQualifiedErrorId : Microsoft.Dism.Commands.AddWindowsDriverCommand


The solution? ou need a Windows 8.1 machine to modify the image (not 8.0), and instead of the CAB file, I used the extracted contents of the .EXE files:


Of course, I will need to wait until I actually get the tablet to test, but at least the Windows image appears to incorporate the drivers correctly.

Leave a comment

Filed under Uncategorized