Quantcast
Channel: Configuration Manager 2012 - Operating System Deployment forum
Viewing all articles
Browse latest Browse all 9126

WDS - using DISM to inject drivers in boot.wim

$
0
0





We are trying to deploy Windows 7 from WDS but we need to add certain nic drivers to the boot.wim image.

To do so i am using DISM to inject the drivers into the image.

However, having added the drivers to the image and then adding the boot.wim file back into WDS, if i close WDS, then open it again, the Boot image has disappeared.

If i add another boot.wim file to WDS, that i haven't added any drivers to, it doesn't disappear.

The process that i used to add the extra drivers to the image is as follows:

Create a folder named bootimage in the root of the C drive, in the boot directory we will create a folder named mount. When this is done, copy the boot.wim from the Windows 7 prodcut DVD into the c:\bootimage directory.

From the Deployment Tools command prompt we are going to mount the image.

DISM /Mount-Wim /WimFile:C:\bootimage\boot.wim /index:1 /MountDir:C\bootimage\mount

The image is mounted we have to add the drivers. Before we do this let's check which 3rd party drivers are available.

DISM /Image:c:\bootimage\mount /get-drivers

So the basic boot.wim does not contain any 3rd party drivers. Add some Windows 7 network drivers to the image now. The  /recurse switch in this command tells the DISM command to search all subdirectories and add the files nested into it in their own directory.

DISM /image:c:\bootimage\mount /Add-Driver /driver:E:\networkdrivers\PRO1000\Win32\NDIS62 /recurse

The drivers are installed now, Run the get-drivers command another time to see if something has really changed.

DISM /Image:c:\bootimage\mount /get-drivers

The drivers are installed , save the image and unmount it. The /commit switch makes the changes to the image, you can use the /discard switch to unmount without saving the changes to the image.

DISM /Unmount-Wim /MountDir:C:\bootimage\mount\ /Commit

Any idea why the boot.wim file with the added drivers is unusable and will not stay in WDS ?

Thanks,

Andrew









Viewing all articles
Browse latest Browse all 9126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>