
I already did a post how you can add drivers to a Windows Server 2008 R2 installation image with the command line tools dism and imagex. With Windows Server 2012 you cannot use the command line tool imagex anymore but you have a new Windows PowerShell module for dism which allows you basically the same with. In this tutorial I will add drivers to a Windows Server 2012 ISO image or a Microsoft Hyper-V Server Image.
First I created three new folders:
- Drivers – which includes all the extracted drivers for Windows Server 2012 (I removed all the drivers which are not related to Windows Server 2012)
- ISO – This includes the extracted Windows Server 2012 ISO image
- Mount – This is a empty folder which will be used to mount the WIM files
First we have to check in which Windows edition we want to add drivers. We can do this by using the Get-WindowsImage cmdlet:
Get-WindowsImage -ImagePath .\ISO\sources\install.wim
This will show you all the Images which are included in this WIM file.
After we have seen the Index numbers we can now mount the Windows Image our Mount folder. In my example I use Image Index 3 which is the Windows Server 2012 Datacenter Core Edition
Mount-WindowsImage -Path .\Mount -ImagePath .\ISO\sources\install.wim -Index 3
After the image is mounted we can now add the drivers from the Drivers folder.
Add-WindowsDriver -Path .\Mount -Driver .\Drivers -Recurse
When all drivers are added to the Image you can dismount the image and save it.
Dismount-WindowsImage -Path .\Mount -Save
We have now added the drivers to the Install image, you should also added the drivers to your boot image. To do this just do the same steps to the .\ISO\sources\boot.wim.
After that you can create a ISO file
oscdimg -n -m -bc:\temp\ISO\boot\etfsboot.com C:\temp\ISO C:\temp\mynew.iso





Pingback: Microsoft Most Valuable Professional (MVP) – Best Posts of the Week around Windows Server, Exchange, SystemCenter and more – #20 - TechCenter - Blog - TechCenter – Dell Community
Hi Thomas
Thx a lot for the post “Add drivers to Windows Server 2012 ISO Image”. I tried it with Cisco UCS drivers. Topic was to allow the Hyper-V hosts booting from iSCSI SAN. But unfortunately I was unsuccessful.
I used the UCS drivers (ucs-bxxx-drivers.2.1.1a.iso) for UCS Version 2.1(1a) from http://software.cisco.com/download/release.html?mdfid=283853163&softwareid=283853158&release=2.0(5a)&relind=AVAILABLE&rellifecycle=&reltype=latest
I have B200 M3 blades and VIC-1240 as CNA’s. At the moment it’s very difficult or almost impossible to find information about Server 2012 booting from iSCSI SAN. Do you have experience with this?
thx a lot and regards
Reto Calonder
Hi
I tried this with boot from SAN (Fiber Channel) and Local Disk for Cisco UCS and it worked fine. I never tried Boot from iSCSI. Did you add all drivers or just some specific?
http://www.thomasmaurer.ch/2013/03/add-cisco-ucs-drivers-to-windows-server-2012-hyper-v-iso-image/