Servicing an offline image means making changes to a Windows installation file before actually installing Windows on a computer. The installation file is called an offline image because it's not currently running or installed.

To do this, you use a Windows tool called DISM (Deployment Image Servicing and Management). DISM lets you customize the Windows installation by making different kinds of changes to the offline image. For example, you can add or remove drivers.

In this tutorial, you will learn how to add or remove drivers from a Windows image.

Step 1: Download required drivers from your laptop/pc manufacturer's site

Here are the official driver download pages for Acer, ASUS, Dell, Lenovo, and HP:

Most often the drivers come as a self-extracting executable (.exe) or archived (.zip) file. You must extract drivers first, an archive file can't be used. To be able to add an individual driver, you will need its .inf file

Create a folder to place all the downloaded drivers. In this example I create the folder on drive D: naming it Drivers.

Drivers
Step 2: Add drivers to image

Create a new folder to temporarily store the contents of Windows 10/11 ISO image. In this example I create the folder on drive D: naming it ISO_Files.

Mount the Windows 10/11 ISO file by double-clicking it to open it as a virtual DVD. In File Explorer, open the mounted ISO, press Ctrl + A to select all files and folders, then press Ctrl + C to copy them. Navigate to your ISO_Files folder and press Ctrl + V to paste the contents of the ISO.

Virtual DVD
Windows 11 ISO Files

Create a folder to mount offline image. In this example I create the folder on drive D: naming it Mount.

Open a PowerShell window (run as Administrator). Then enter the following command to see which Windows editions are included in the image:

Dism /Get-WimInfo /WimFile:D:\ISO_Files\Sources\install.wim
List All Editions

Mount the image of your preferred Windows 10/11 edition using its index number (retrieved from the previous step). Use the following command to mount the image:

Dism /Mount-Wim /WimFile:D:\ISO_Files\Sources\install.wim /index:6 /MountDir:D:\Mount
Mount Windwos Image

Replace 6 with the index number of the edition you want to mount.

You can check which third-party drivers are already present in the mounted offline Windows image by running the following command:

Dism /Image:D:\Mount /Get-Drivers
List All Drivers

You can now add all the drivers to the offline mounted Windows image using the following command:

Dism /Image:D:\Mount /Add-Driver /Driver:D:\Drivers /Recurse
Add All Drivers

If you prefer to add drivers one by one to your offline mounted Windows image, you can use the following command for each individual .inf file:

Dism /Image:D:\Mount /Add-Driver /Driver:D:\Drivers\DriverName1\YourDriver1.inf /Driver:D:\Drivers\DriverName2\YourDriver2.inf

If you want to remove a driver from offline image, use the following command:

Dism /Image:D:\Mount /Remove-Driver /Driver:D:\Drivers\DriverName1\YourDriver1.inf /Driver:D:\Drivers\DriverName2\YourDriver2.inf

Once all drivers have been added, you can save the changes and unmount the offline image using the following command:

Dism /Unmount-Wim /MountDir:D:\Mount /Commit
Unmount Windows Image
Step 3: Create an Updated Windows ISO

Download the latest Windows Assessment and Deployment Kit (ADK): Microsoft Windows ADK download page.

The Windows Assessment and Deployment Kit (Windows ADK) installer allows you to pick individual components to install. If you want to install only oscdimg.exe, in the list of features, uncheck all options except Deployment Tools.

After you install the Deployment Tools component of the Windows ADK (which includes oscdimg.exe), you can access the special command-line environment by clicking Start and typing Deployment and Imaging Tools Environment, and then right-clicking it to select Run as administrator.

Run the following command and this command will create an ISO that boots on both legacy BIOS and UEFI systems.

oscdimg.exe -m -o -u2 -udfver102 -bootdata:2#p0,e,bD:\ISO_files\boot\etfsboot.com#pEF,e,bD:\ISO_files\efi\microsoft\boot\efisys.bin D:\ISO_files D:\Win11_24H2_v2_English_x64.iso
Create an Updated Windows ISO
Switch Description
oscdimg.exeThe tool that creates the ISO image (part of the Windows ADK).
-mIgnores the maximum size limit for a CD (700MB). Needed for DVDs/USBs.
-oOptimizes storage by eliminating duplicate files during ISO creation.
-u2Sets the UDF (Universal Disk Format) version to 2.01 (required for large files and newer systems).
-udfver102Also sets the UDF version explicitly to 1.02 for better compatibility. Used redundantly here, but sometimes required for older systems.
-bootdata:2#Tells oscdimg to build two boot entries so that the ISO can boot in both legacy BIOS and modern UEFI systems.
p0Partition 0 — standard for BIOS boot.
eMarks it as bootable.
bD:\ISO_files\boot\etfsboot.comSpecifies the boot sector file — etfsboot.com is the boot image for BIOS systems.
pEFEFI boot partition.
eMarks it as bootable.
bD:\ISO_files\efi\microsoft\boot\efisys.binPath to the UEFI boot sector image — efisys.bin.
D:\14986PROx64.isoThe source folder containing all Windows setup files.
D:\Win11_24H2_v2_English_x64.isoThe output ISO that will be created.
Create an updated ISO