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:
- Open Powershell with Administrator rights.
- Made a folder called c:\image
- Made a folder called c:\drivers and copied the contents of the CAB to that location
- Ran “mount-windowsimage -path c:\image -imagepath e:\sources\install.wim -index 1”
- 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.