Sign in to follow this  
Followers 0
AdverseDeviant

adding drivers to wim image

13 posts in this topic

im trying to add network drivers to the wim images on our wds server using wintoolkit which is basically a dism gui. ive added the drivers to the boot image as well as the main image but when i boot the computer into pxe and it loads the boot file it still errors out saying a matching network driver cannot be found please add the network driver to windows pe image on the wds server. i know they are the right drivers so i dont know what im doing wrong. any ideas? thanks

Share this post


Link to post
Share on other sites

What commands are you using?

There are more than one index in the boot.wim. To be safe, be sure to add the driver to all indexes present.

You can see all the indexes present:

imagex.exe /info boot.wim

Then update each one:

imagex.exe /mountrw boot.wim 1 c:\mount

Dism /Image:C:\mount /Add-Driver /Driver:C:\drivers\mydriver.INF

imagex.exe /unmount c:\mount /commit

imagex.exe /mountrw boot.wim 2 c:\mount

Dism /Image:C:\mount /Add-Driver /Driver:C:\drivers\mydriver.INF

imagex.exe /unmount c:\mount /commit

Share this post


Link to post
Share on other sites

am i supposed to add the network drivers to the boot image or the win7 image itself or both?

Share this post


Link to post
Share on other sites

Add network drivers to the boot image so you can install from the network.

If you don't add them to the win7 image, after it's been installed it won't have the network drivers, and you'll have to load them VIA USB stick or other means.

Share this post


Link to post
Share on other sites

You can use imagex or dism. In this case they accomplish the same thing. I like imagex better because it uses simple syntaxes. imagex is part of the Windows 7 AIK (automated installation kit).

Here's the same as above but using dism:

Dism /Mount-Wim /WimFile:boot.wim /Index:1 /MountDir:c:\mount

Dism /Image:C:\mount /Add-Driver /Driver:C:\drivers\mydriver.INF

Dism /Unmount-Wim /MountDir:c:\mount /Commit

Share this post


Link to post
Share on other sites

okay so i found out my boot image has 2 indexes so i added the drivers to both indexes and it still doesnt work. i really need this working. any other ideas? thanks

Share this post


Link to post
Share on other sites

i started all over and it still didnt work. the computer im trying to get working is an optiplex 980. ive even downloaded driver packs and integrated every driver under the sun and it still didnt work. does anyone have a boot.wim file for windows 7 x86 that works for optiplex 980's?

Share this post


Link to post
Share on other sites

I am more used to using the litetouch option. However, I noticed using the WDS panel I had to replace the boot images each time I added drivers which I found odd. Either way after replacing the boot image in the WDS each time it took the driver updates (via right clicking the boot image and selecting replace image in the WDS snap in). Not sure if that helps or not, good luck, wds can be a b****.

Share this post


Link to post
Share on other sites

I don't know what the syntax for your tool is, but dism uses a /recurse option that can be used after /add-drivers that searches for and installs anything that is a driver in a specified directory - try installing both 32 and 64 bit if they're individual drivers (ie, put them all under one parent directory called "NIC drivers" and pull a recurse - you should see a heap of drivers show), and again make sure you put them into both indexes. It will be smart enough to know which it needs

Share this post


Link to post
Share on other sites

okay this is exactly what i did.

i copied the boot.wim file to the c drive and downloaded the network drivers from dell for the optiplex 980. its the right drivers cause it installed them manually on another working 980 under the device manager.

then i ran these commands:

DISM /MOUNT-WIM /WIMFILE:C:\BOOT.WIM /INDEX:1 /MOUNTDIR:C:\BOOT86

DISM /IMAGE:C:\BOOT86 /ADD-DRIVER:C:\980 /RECURSE

DISM /UNMOUNT-WIM /MOUNTDIR:C:\BOOT86 /COMMIT

DISM /MOUNT-WIM /WIMFILE:C:\BOOT.WIM /INDEX:2 /MOUNTDIR:C:\BOOT86

DISM /IMAGE:C:\BOOT86 /ADD-DRIVER:C:\980 /RECURSE

DISM /UNMOUNT-WIM /MOUNTDIR:C:\BOOT86 /COMMIT

i uploaded the new boot.wim image to wds and booted a 980 into pxe mode and it got to the starting screen of setup then errored out saying i needed to add the network drivers to the windows pe image.

Share this post


Link to post
Share on other sites

This is assuming your image is mounted here: C:\Mount

DISM /image:C:\Mount /Add-Driver /driver:\\driver_folder_location\ /recurse

Dism /Unmount-Wim /MountDir:C:\Mount\ /Commit

Share this post


Link to post
Share on other sites

i reinstalled wds and i got it to work. thank you all for the help!

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.