Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

352487

August 1st, 2014 09:00

Adding drivers to .wim using dism

Hi All,

I am new to this forum and hope I am posting correctly. I have been trying to add new drivers to my wim image using DISM and I continue to get driver package cannot install no matter if I try to add one or 20 using the recurse at the end. I have checked and double checked my syntax. I include it below in hopes that someone may give me a hand,

C:\Program Files\Windows AIK\Tools\PETools>dism /image:c:\mount /add-driver /dri

ver:c:\dell\winpe3.0-Drivers-A14-8YRGH\Winpe /recurse

 

Deployment Image Servicing and Management tool

Version: 6.1.7600.16385

 

Image Version: 6.2.9200.16384

 

Searching for driver packages to install...

Found 71 driver package(s) to install.

Installing 1 of 71 - c:\dell\winpe3.0-Drivers-A14-8YRGH\Winpe\x64\network\7R4RM_

A00-00\win7x64\Windows7-x64\b57nd60a.inf: Error - An error occurred. The driver

package could not be installed.

For more information, check for log files in the \inf folder of the targ

et image.

Installing 2 of 71 - c:\dell\winpe3.0-Drivers-A14-8YRGH\Winpe\x64\network\7R4RM_

A00-00\win7x64\Windows7-x64\k57nd60a.inf: Error - An error occurred. The driver

package could not be installed.

For more information, check for log files in the \inf folder of the targrt

 

 

C:\Program Files\Windows AIK\Tools\PETools>dism /image:C:\MOUNT /add-driver /dri

ver:C:\Winpe\E1C62x64.inf

 

Deployment Image Servicing and Management tool

Version: 6.1.7600.16385

 

Image Version: 6.2.9200.16384

 

Found 1 driver package(s) to install.

Installing 1 of 1 - C:\Winpe\E1C62x64.inf: Error - An error occurred. The driver

package could not be installed.

For more information, check for log files in the \inf folder of the targ

et image.

 

Error: 5

 

Access is denied.

 

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

 

I would appreciate any and all help.

Rick

 

 

Derrick Marshall

Technical Services

Child Care Resource Center

Office: <ADMIN NOTE: Phone number removed as per privacy policy>

eMail: <ADMIN NOTE: Email id removed as per privacy policy>

 

15 Posts

August 4th, 2014 07:00

All DISM commands need to be run from a Command Prompt with elevated permissions.

Secondly you should only inject drivers for the BITS version of your image. The command you were using will attempt to install both 64 and 32BIT drivers. You should go one folder deeper to run your recurse command.

dism /image:c:\mount /add-driver /driver:c:\dell\winpe3.0-Drivers-A14-8YRGH\Winpe\x86 /recurse

Thanks and Good Luck,

Gary

1 Message

August 4th, 2014 14:00

You should include the /forceunsigned switch in your DISM command.  Some of the drivers included in the packages are from 3rd party peripheral vendors and may not be signed with a globally recognized certificate.

Also, as Gary has already suggested, the driver source should be rooted at the folder for the apropriate processor architecture (i.e. x86 or x64)

No Events found!

Top