Wednesday, March 21, 2012

WDS: Integrate drivers into a WIM file with DISM


1. Download and install WAIK



2.Mount the Image
Create folders "Images" and "mount" on c:\
BOOT.WIM=>
dism /mount-wim /WimFile:c:\Images\boot.wim /index:2 /MountDir:c:\mount

INSTALL.WIM=>

 dism /mount-wim /WimFile:c:\Images\Install.wim /index:1 /MountDir:c:\mount


3. Administrate drivers
-3.1 Get drivers
-dism /image:c:\mount /get-drivers


-3.2 Add drivers
-3.2.1 with *.inf
-dism /image:c:\mount /add-driver /driver:c:\HP7700\heki.inf
-3.2.2 add drivers in a specified folder
-Type in /recurse to install all drivers in one folder
Example:
dism /image:c:\mount /add-driver /driver:c:\drv /recurse


-3.3 Delete driver

-3.3.1 info driver
- dism /image:c:\mount /get-driverinfo /driver:oem1.inf

-3.3.2 delete driver
-Dism /Image:c:\mount /remove-driver /Driver:oem1.inf



4. Image unmount
Dism /unmount-wim /MountDir:c:\mount /commit



5. Adding the Image to the WDS
Delete the old Image and add the new.
If you only replace the old image sometimes the changes will not be applied.

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. I'm trying to integrate a couple of patches (KB975535 and KB982929) and a "Intel(R) C600+/C220+ series chipset SATA RAID Controller"-driver to boot.wim on a Windows Small Business Server 2011 DVD to be able to use UEFI and GPT disks. When I do Get-WimInfo on the file I see two instances: Microsoft Windows PE (x64) and Microsoft Windows Setup (x64). Is it the second (index:2) instance I should apply the patches and driver to?

    ReplyDelete