Adding custom drivers to Windows 10 ISO Boot Image. Example: Integrate Apple BootCamp drivers.

Julius P
3 min readJan 10, 2021

--

This is an addition to my previously published guide on how to install Windows with BootCamp on an external device.

The aim is to integrate drivers into a Windows 10 ISO. This allows windows to install them during boot/setup process and have them ready as soon as Windows starts. This in combination with unattended setup can simplify recurring installations of Windows immensely.

Prerequisites

Prepare Files for the integration process

Credit: http://woshub.com/integrate-drivers-to-windows-install-media/

Start your Windows 10 installation and create the following folders

C:/workspace/ISO

C:/workspace/mount

C:/workspace/drivers

  1. Mount the Windows 10 ISO file and copy the contents to C:/workspace/ISO

2. Copy the drivers you would like to integrate (in this example from the BootCamp Support Software Drive created under MacOS) to C:/workspace/drivers

This is the folder structure for BootCamp drivers, just copy all the contents from the support USB stick

NOTE: Only .inf style drivers can be added this way, not .exe files. These need to be extracted if possible in order to be integrated offline.

Start a Power Shell instance as an admin (search for Power Shell and click on Run As Administrator)

Check for the correct version and take note of the Index

Get-WindowsImage -ImagePath C:\workspace\ISO\sources\install.wim

I want Windows 10 Pro, in this case Index 6, but you do you!

Mount-WindowsImage -Path C:\workspace\mount\ -ImagePath C:\workspace\ISO\sources\install.wim -Index 6

This will take a while …

Once the process is done, we can add the drivers

Add-WindowsDriver -Path C:\workspace\mount\ -Driver C:\workspace\drivers -Recurse -ForceUnsigned

Done it shows a long list of the integrated drivers

Now we can seal the package again

Dismount-WindowsImage -Path C:\workspace\mount\ –Save

Note: The drivers are integrated only for the version you chose above, in my case Windows 10 Pro. You need to do this for all versions you plan to use this way. The ISO file can get excessively large!

Create a bootable ISO file

In order to complete the integration process, we need to compress the files back into an ISO file.

You need to install the toolkit from the Windows Assessment and Deployment Kit (ADK) for Windows 10. You should have the adksetup.exe somewhere (see Prerequisites). Start the installation process.

We only need to install/update/add the Deployment Tools

Once installed search for Deployment and Imaging Tools Environment and Run as administrator

Return to the root of the C drive (if that is the drive you have Windows installed)

cd\

and then (I know it looks weird)

C:\>oscdimg.exe -m -o -u2 -udfver102 -bootdata:2#p0,e,bc:\workspace\ISO\boot\etfsboot.com#pEF,e,bc:\workspace\ISO\efi\microsoft\boot\efisys.bin c:\workspace\ISO c:\integrated10.iso

Well done!

This creates a Windows 10 image with the drivers for BootCamp integrated. Now continue with installing Windows with BootCamp on an external device.

--

--