💻 Customizing & Creating Windows ISOs (Guide)
🛠️ Part 1: Injecting Drivers Directly into a Windows ISO
Using Microsoft's official DISM (Deployment Image Servicing and Management) tool, you can embed offline drivers into your Windows installer without third-party tools like NTLite.
📋 Prerequisites & Folder Setup
Create three temporary folders on your main drive (e.g., C:\):
| Folder Path | Purpose / Preparation |
|---|---|
C:\Drivers |
Exported driver files. (Generate via: dism /online /export-driver /destination:C:\Drivers) |
C:\ISO |
Extracted contents of an official Windows 11 ISO. (Double-click your downloaded ISO and copy all files here) |
C:\Mount |
An empty folder used by DISM as a temporary workspace. |
📑 Step-by-Step Guide
Step 1: Launch Admin Command Prompt
- Open the Start menu, type
cmd. - Right-click Command Prompt and select Run as administrator.
Step 2: Identify Your Windows Edition Index
A single ISO often contains multiple Windows editions (Home, Pro, Education). Run this command to check the list:
dism /Get-WimInfo /WimFile:C:\ISO\sources\install.wim
Locate your target edition (e.g., Windows 11 Pro) in the output list and note its Index number (e.g., 6).
💡 ESD Note: If your ISO contains
install.esdinstead ofinstall.wim, convert it to.wimfirst using NTLite or DISM, as.esdfiles are read-only.
Step 3: Mount the Image
Mount the Windows image file into your empty C:\Mount directory:
dism /Mount-Wim /WimFile:C:\ISO\sources\install.wim /Index:6 /MountDir:C:\Mount
(Replace 6 with your specific edition index).
Step 4: Inject the Drivers
Inject all driver packages from C:\Drivers into the mounted image:
dism /Image:C:\Mount /Add-Driver /Driver:C:\Drivers /Recurse
Step 5: Save Changes and Unmount
Commit your updates and close the temporary image:
dism /Unmount-Wim /MountDir:C:\Mount /Commit
⚠️ Important: Close all File Explorer windows accessing
C:\Mountprior to executing this command, or the unmount process will fail.
🚀 Step 6: Repackaging into an ISO
- For Ventoy users: You don't necessarily need to compile an
.isofile. Ventoy supports unpacked directory structures using its plugins. - To build a standard ISO:
- Open a tool like AnyBurn and select Create ISO from files/folders.
- Select all files inside
C:\ISOand save as a new.isofile.
🔄 Part 2: Converting an Active Windows Installation into a Bootable ISO
To clone your running Windows environment into an installer ISO, you must capture the C: drive offline while system files are unlocked.
⚠️ Requirements Before Starting
- External Drive: An NTFS-formatted drive with enough free space (e.g., 30–40 GB compressed space for a 60 GB C: drive).
- Official Windows 11 ISO: Downloaded from Microsoft's website to serve as the bootable installer framework.
📑 Step-by-Step Guide
Step 1: Boot into Recovery Command Prompt
- Hold Shift and click Restart in the Start menu.
- Go to Troubleshoot > Advanced Options > Command Prompt.
- Type
notepadand press Enter. - In Notepad, select File > Open > This PC to check drive letters.
- Note down your OS drive letter (e.g.,
D:) and external storage letter (e.g.,E:). Drive letters often shift in WinRE.
- Close Notepad to return to the Command Prompt window.
Step 2: Capture Your C: Drive with DISM
Run the capture command, substituting <OS_DRIVE> and <TARGET_DRIVE> with your actual letters:
dism /Capture-Image /ImageFile:E:\install.wim /CaptureDir:D:\ /Name:"CustomWindows11"
Once completed (15–45 minutes), type exit and restart back into normal Windows.
Step 3: Package into a Bootable ISO
- Open AnyBurn and choose Edit image file.
- Select your original, unmodified Windows 11 ISO.
- Open the
sourcesfolder inside the ISO directory list. - Remove the existing
install.wim(orinstall.esd). - Click Add and select your newly created
install.wimfrom your external drive. - Click Next and save the outcome as
CustomWindows11.iso.
💡 If deploying this image onto different physical computers, run Sysprep (
sysprep /generalize /oobe /shutdown) before capturing to detach machine-specific drivers.
💻 Windows ISO Aanpassen & Aanmaken (Handleiding)
🛠️ Deel 1: Drivers rechtstreeks toevoegen aan een Windows ISO
Met Microsoft's officiële DISM-tool (Deployment Image Servicing and Management) voeg je drivers toe aan de Windows-installer zonder dat je software van derden zoals NTLite nodig hebt.
📋 Vereisten & Mappenstructuur
Maak drie tijdelijke mappen aan op je hoofd-schijf (bijv. C:\):
| Mappad | Doel / Voorbereiding |
|---|---|
C:\Drivers |
Geëxporteerde drivers. (Aanmaken via: dism /online /export-driver /destination:C:\Drivers) |
C:\ISO |
Uitgepakte inhoud van een officiële Windows 11 ISO. (Dubbelklik op de ISO en kopieer alle bestanden hiernaartoe) |
C:\Mount |
Een lege map die door DISM als tijdelijke werkruimte wordt gebruikt. |
📑 Stappenplan
Stap 1: Open de Opdrachtprompt als Administrator
- Open het Startmenu, typ
cmd. - Klik met de rechtermuisknop op Opdrachtprompt en kies Als administrator uitvoeren.
Stap 2: Bepaal het Indexnummer van jouw Windows-versie
Een ISO bevat vaak meerdere versies (Home, Pro, etc.). Controleer de index via:
dism /Get-WimInfo /WimFile:C:\ISO\sources\install.wim
Zoek jouw versie (bijv. Windows 11 Pro) in het overzicht en noteer het Index-nummer (bijv. 6).
💡 ESD-opmerking: Bevat jouw ISO een
install.esdin plaats vaninstall.wim? Zet deze dan eerst om naar.wimvia NTLite of DISM, aangezien.esd-bestanden alleen-lezen zijn.
Stap 3: Koppelen (Mounten) van het Image
Koppel het Windows-bestand aan de lege map C:\Mount:
dism /Mount-Wim /WimFile:C:\ISO\sources\install.wim /Index:6 /MountDir:C:\Mount
(Vervang 6 door jouw specifieke indexnummer).
Stap 4: Drivers Toevoegen (Injecteren)
Voeg alle drivers uit C:\Drivers toe aan het gekoppelde bestand:
dism /Image:C:\Mount /Add-Driver /Driver:C:\Drivers /Recurse
Stap 5: Wijzigingen Opslaan en Ontkoppelen
Sla de wijzigingen op en sluit het tijdelijke bestand af:
dism /Unmount-Wim /MountDir:C:\Mount /Commit
⚠️ Belangrijk: Sluit alle Verkenner-vensters die in de map
C:\Mountkijken voordat je dit commando uitvoert.
🚀 Stap 6: ISO Aanmaken
- Voor Ventoy-gebruikers: Je hoeft niet per se een
.iso-bestand te maken. Ventoy ondersteunt ook uitgepakte mappenstructuren via plug-ins. - Standaard ISO maken:
- Open een tool zoals AnyBurn en kies Create ISO from files/folders.
- Selecteer alle bestanden in
C:\ISOen sla het op als een nieuw.iso-bestand.
🔄 Deel 2: Actieve Windows C-schijf Omzetten naar een Bootbare ISO
Om je draaiende Windows-omgeving te klonen naar een installatie-ISO, moet je de C-schijf offline vastleggen wanneer het systeem de bestanden niet blokkeert.
⚠️ Vereisten Voordat Je Begint
- Externe Schijf: Een NTFS-geformatteerde schijf met voldoende vrije ruimte (bijv. 30–40 GB vrije ruimte voor een C-schijf van 60 GB).
- Standaard Windows 11 ISO: Gedownload van de Microsoft-website om als installatie-basis te dienen.
📑 Stappenplan
Stap 1: Start op in de Herstel-Opdrachtprompt
- Houd Shift ingedrukt en klik op Opnieuw opstarten in het Startmenu.
- Ga naar Problemen oplossen > Geavanceerde opties > Opdrachtprompt.
- Typ
notepaden druk op Enter. - Ga in Notepad naar Bestand > Openen > Deze pc om de schijfletters te controleren.
- Noteer de letter van je Windows-schijf (bijv.
D:) en je externe opslag (bijv.E:). Schijfletters veranderen vaak in WinRE.
- Sluit Notepad om terug te keren naar het zwarte scherm.
Stap 2: Leg de Schijf vast met DISM
Voer het commando uit en vervang de letters door jouw specifieke schijfletters:
dism /Capture-Image /ImageFile:E:\install.wim /CaptureDir:D:\ /Name:"CustomWindows11"
Dit proces duurt 15 tot 45 minuten. Typ na voltooiing exit en start de PC normaal op.
Stap 3: Samenvoegen tot een Bootbare ISO
- Open AnyBurn en kies Edit image file.
- Selecteer de officiële Windows 11 ISO.
- Open de map
sourcesin de ISO-mappenstructuur. - Verwijder het bestaande
install.wim(ofinstall.esd). - Klik op Add en kies je nieuwe
install.wimvan je externe schijf. - Klik op Next en sla het bestand op als
CustomWindows11.iso.
💡 Als je dit image op computers met andere hardware gaat installeren, voer dan eerst Sysprep (
sysprep /generalize /oobe /shutdown) uit vóór het vastleggen om hardwarespecifieke drivers te ontkoppelen.