home Endpoint Manager, Powershell, Windows 10, Windows 11 How to add drivers to Windows Installation ISO – Windows 10 & 11

How to add drivers to Windows Installation ISO – Windows 10 & 11

How to add Drivers to Windows Installation ISO – Windows 10 & 11

I recently had a customer, who had bought a new laptop. but the newest Windows 11 image could not recognize any network adapter, so we could not sign in with the Microsoft Account.

Here is a guide, how to add the missing driver(s) during the setup, to the Windows Installation ISO.

In this example i have a brand new Lenovo L15 (20U3004GFR). As seen in the image below, the Windows 11 21H2 Image only recognize the Lan adapter. Let’s make a new image that recognizes the Wi-Fi adapter too.

Windows 11 Install screen on Lenovo. Only shows the Lan Adapter

Prerequisites

Driver(s)

Download required drivers from manufacturer’s site

Windows Assessment and Deployment kit

You can download it from this link; Download Windows Assessment and Deployment Kit (Microsoft.com)

Windows 10 or 11 ISO file

You can download the latest Windows 11 at this link from Microsoft; Download Windows 11 (microsoft.com)

Disk space

15GB free disk space (after download of the ISO file)

Bootable USB creater tool

You can use Rufus, a free tool Rufus – Create bootable USB drives the easy way

 

Driver(s)

Create an folder on your C-Drive called Driver (C:\driver) and export the driver/drivers you wan’t to add to the image, to this folder.

Windows ISO file

Create an folder on your C-Drive called work (C:\work)

Create an folder on your C-Drive called iso (C:\iso)

Mount the ISO file in Windows (double click on the file, or right click and choose Mount)

Open the mounted ISO from explore, then select all files (Ctrl+A) and Copy it (Ctrl+C)

Open the iso folder (C:\iso) and paste the files to this folder (Ctrl+V)

Mount the Windows ISO

Open elevated PowerShell, (Search for PowerShell in your start menu, and right click and choose Run as administrator)

Type:

Dism /Get-WimInfo /WimFile:C:\iso\Sources\install.wim

Now we have to find the index number of the OS edition. In this example we have a Wndows 11 (21H2) ISO, I will use PRO edition to add drivers to, so let’s go for the index number 6

Now we have to mount the image of your preferred Windows edition (in this example Windows 11 Pro) using it’s index number

Type:

Dism /Mount-Image /ImageFile:C:\iso\Sources\install.wim /Index:6 /MountDir:C:\work

Wait for the Deployment Image Servicing and Managment tool to complete

Add driver(s) to the image

Open the Driver folder (C:\driver) if you not already have enabled file extensions in explore, then do it

Find the .inf file(s) of your driver(s) in this example let’s take mtkwl6ex.inf (MediaTek Wi-Fi 6/6E Wireless LAN Card driver)

Type:

dism /Image:C:\work /Add-Driver /Driver:C:\Driver\mtkwl6ex.inf



If the driver is unsigned, use the following command insted : dism /Image:C:\work /Add-Driver /Driver:C:\Driver\mtkwl6ex.inf /ForceUnsigned 

if you want to add additional drivers, repeat previous step and change the Driver,

Or you can use this command for adding all the drivers in the folder and subfolders: dism /Image:C:\work /Add-Driver /Driver:C:\Driver /Recurse

When all drivers are added, we have to commit the changes to the Windows image type;

dism /Unmount-Image /MountDir:C:\work /Commit

Windows Deployment Tools

We now need the Deployment tool, so go on and install it

Run the Install file for the Windows Deployment Tools (link in the top)

Click Next

Click Next

Click Accept

We only need the Deployment Tool, so remove the other checkmarks, and click Install

Click Yes to the UAC box

Click Close

Open the Deployment and Imaging tool Enciroment as Administrator from your start menu

Click Yes to the UAC Box

Now we have to create the new ISO file

Type this command;

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

 

Now we have the final updated ISO file at our C-Drive called Win.iso

Optional: You can now delete the folders; C:\Driver, C:\iso & C:\work

Our final ISO file, with alternative driver added

Create Bootable USB Stick

Final thing we have to do, is to write the iso file to an usb stick

In this guide I use the free tool Rufus

Open Rufus

Choose you USB drive in the top drop down menu

Choose our new Iso file at the Select box

Click START

Click OK

Now the Bootable USB Stick is Ready

Let’s Test

Now the Windows 11 Installer recognize the Wireless lan adapter too.

Leave a Reply

Your email address will not be published.