💻 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

  1. Open the Start menu, type cmd.
  2. 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.esd instead of install.wim, convert it to .wim first using NTLite or DISM, as .esd files 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:\Mount prior 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 .iso file. Ventoy supports unpacked directory structures using its plugins.
  • To build a standard ISO:
  1. Open a tool like AnyBurn and select Create ISO from files/folders.
  2. Select all files inside C:\ISO and save as a new .iso file.


🔄 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

  1. Hold Shift and click Restart in the Start menu.
  2. Go to Troubleshoot > Advanced Options > Command Prompt.
  3. Type notepad and press Enter.
  4. 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.
  1. 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

  1. Open AnyBurn and choose Edit image file.
  2. Select your original, unmodified Windows 11 ISO.
  3. Open the sources folder inside the ISO directory list.
  4. Remove the existing install.wim (or install.esd).
  5. Click Add and select your newly created install.wim from your external drive.
  6. 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

  1. Open het Startmenu, typ cmd.
  2. 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.esd in plaats van install.wim? Zet deze dan eerst om naar .wim via 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:\Mount kijken 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:
  1. Open een tool zoals AnyBurn en kies Create ISO from files/folders.
  2. Selecteer alle bestanden in C:\ISO en 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

  1. Houd Shift ingedrukt en klik op Opnieuw opstarten in het Startmenu.
  2. Ga naar Problemen oplossen > Geavanceerde opties > Opdrachtprompt.
  3. Typ notepad en druk op Enter.
  4. 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.
  1. 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

  1. Open AnyBurn en kies Edit image file.
  2. Selecteer de officiële Windows 11 ISO.
  3. Open de map sources in de ISO-mappenstructuur.
  4. Verwijder het bestaande install.wim (of install.esd).
  5. Klik op Add en kies je nieuwe install.wim van je externe schijf.
  6. 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.

Bijlagen

Geen bestanden gekoppeld.