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
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. If you use Windows 8, you see other editions.
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, 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
having trouble following add drivers win 8.1 tutorial. powershell doesn’t recognize commands. what info do u need frm me to help.