Tag: imagex

Windows 8 Logo

Add drivers to Windows 8 ISO Image

I already did a post how you can add drivers to your Windows 7 image with command line tools like dism and imagex. With Windows 8 you cannot use the command line tool imagex anymore, but you have a new Windows PowerShell module for dism which allows you to do the same. In this tutorial, I will add drivers to a Windows 8 ISO image.

First, I created three new folders:

  • Drivers – which includes all the extracted drivers for Windows 8
  • ISO – This consists of the extracted Windows 8 ISO image
  • Mount – This is an empty folder which will be used to mount the WIM files

PowerShell Dism Folders

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

Get-WindowsImage

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. If you use Windows 8, you see other editions.

 Mount-WindowsImage -Path .\Mount -ImagePath .\ISO\sources\install.wim -Index 3

Mount-WindowsImage

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

Dismount-WindowsImage

We have now added the drivers to the Install image, and you should also add the drivers to your boot image. To do this do the same steps to the .\ISO\sources\boot.wim.

After that, you can create an ISO file

oscdimg -n -m -bc:\temp\ISO\boot\etfsboot.com C:\temp\ISO C:\temp\mynew.iso


Windows Server

Add drivers to Windows Server 2012 ISO Image

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 an empty folder which will be used to mount the WIM files

PowerShell Dism Folders

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

Get-WindowsImage

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

Mount-WindowsImage

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

Dismount-WindowsImage

We have now added the drivers to the Install image, you should also add 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 an ISO file

oscdimg -n -m -bc:\temp\ISO\boot\etfsboot.com C:\temp\ISO C:\temp\mynew.iso

I hope this helps you to add drivers to a Windows Server ISO Image. If you have any questions, feel free to leave a comment.



Cisco UCS Hyper-V Cluster – Create Hyper-V Image for Blade Servers – Part 2

We use Microsoft Hyper-V Server 2008 R2 as Operating System for our Cisco Blade Notes. The Cisco UCS does need some special drivers which are not included in Hyper-V Server Image (Network and HBA). So I created a Hyper-V Server 2008 R2 ISO file which includes the Drivers from the Cisco UCS.

I made a blog post about adding Drivers to a Windows ISO, this is pretty much the same.

  1. First Download the Hyper-V Server 2008 R2 ISO from microsoft.com
  2. Download the Drivers from Cicso.com, you can download the Bundle File which also includes firmware.
  3. Download and install the Windows Automated Installation Kit
  4. Extract the Hyper-V ISO to C:\temp\hypervr2
  5. Extract the Windows Driver folder in the Cisco Driver ISO (In my case ucs-b2xx-drivers-1.3.1g.iso) to C:\temp\Drivers\Windows
  6. Create a folder for the WIM mount point C:\temp\WIM
    Folders
  7. Start Windows AIK Deployment Tools Command Prompt from Start menu
    Windows AIK Deployment Tools Command Prompt
  8. Now mount the install.wim file form the original Hyper-V Image (C:\temp\hypervr2\SOURCES) to C:\temp\WIM
    imagex /mountrw C:\temp\hypervr2\SOURCES\install.wim 1 C:\temp\wim
  9. Add Drivers with dism
    CD C:\temp\Drivers\Windows\Network\Emulex\M72KR\W2K8R2\x64
    dism /image:C:\temp\WIM /add-driver /driver:. /recurse
  10. After adding all drivers to the Image you can unmout the WIM Image
    imagex /unmount /commit C:\temp\wim
  11. Now create the new ISO file
    oscdimg -n -m -bc:\temp\hypervr2\boot\etfsboot.com C:\temp\hypervr2 C:\temp\hypervr2drivers.iso

Now you can use this new Image to deploy the Hyper-V Hosts on your Cisco UCS Blades.



Windows Server 2019 USB Drive

Add Drivers to Windows Installation ISO

If you have a Windows 7 or even a Windows Server 2008 R2 Server ISO file and you need to add drivers to this ISO file, this little how-to shows you how you can do that.

  1. First create the following folders
    C:\temp\WindowsISO (Unpack the windows.iso to this folder)
    C:\temp\drivers (Add all driver folders in this folder the drivers have to be in .inf format)
    C:\temp\wim (Is a temp folder for the WIM file)
    C:\ temp\WindowsISOdrivers (the new .ISO file will be created here)
  2. Download and install the Windows Automated Installation Kit
  3. Start Windows AIK Deployment Tools Command Prompt from Start menu
  4. Mount the install.wim file from C:\temp\WindowsISO to C:\temp\wim
    imagex /mountrw C:\temp\WindowsISO\SOURCES\install.wim 1 C:\temp\wim
  5. Add Drivers with dism
     CD C:\temp\drivers\Network\Emulex\M72KR\W2K8R2\x64
    dism /image:C:\temp\wim /add-driver /driver:. /recurse
  6. Now unmount the WIM Image
    imagex /unmount /commit C:\temp\wim
  7. Create the new ISO file
    oscdimg -n -m -bc:\temp\WindowsISO\boot\etfsboot.com C:\temp\WindowsISO C:\temp\WindowsISOdrivers\windows.iso