- Know how to access the BIOS settings of the target PC ⚙️
- Two USB sticks (of at least 16 GB) 💾💾
- A sheet of paper 📝
- A pen 🖊️
- Rufus tool:
choco install rufus- Rufus
- Windows installation image:
- Connect the first USB stick to the PC
- Open Rufus
- Select the correct USB stick
- Select the Windows 11 ISO
- Set the correct BIOS/boot partition format
- Check that the file system is NTFS
- Other options that you can set for the Windows ISO image:
- Turn off the target PC (if it is on)
- Connect both USB sticks 💾💾
- Turn on the PC and enter the BIOS ⚙️
- Set the first USB stick as the boot device
- At the end of the guide, it may be necessary to set Windows Boot Manager as the default boot option 🔁
-
Press
Shift + F10to open Command Prompt (cmd) ⌨️ -
Type
diskpartand pressEnterto open the partition tool. -
Inside
diskpart, typelist voland pressEnterto list all storage volumes 💽 -
Write down the output (for example on the sheet of paper) for the next steps 📝
-
Exit
diskpartby typingexitand pressingEnter. -
Now type the following command (all on one line), customizing the values in angle brackets
<...>:dism /capture-image /imagefile:<drive_letter_of_second_USB>:\install.wim /capturedir:<drive_letter_where_Windows_is_installed>:\ /scratchdir:<same_drive_as_imagefile>:\ /name:<image_name_without_spaces> /compress:maximum /checkintegrity /verify /bootable
<drive_letter_of_second_USB>→ the drive letter of the second USB stick (use the notes fromlist vol)<drive_letter_where_Windows_is_installed>→ the drive letter where Windows is installed (for exampleC)<same_drive_as_imagefile>→ usually the same as<drive_letter_of_second_USB><image_name_without_spaces>→ the name you want to give to the image (no spaces)
-
At the end of the process, you can turn off the PC by typing:
wpeutil shutdownand pressing
Enter📴 -
The system image will be saved on the second USB stick with the name you chose! 🎉💾
-
Connect both USB sticks to the working PC 💾💻
-
Create a working directory on the PC (for example:
C:\WinISO_Workdir) 📁 -
Copy all the content from the Windows installer USB stick into the working directory.
-
In the working directory, go to the
sourcesfolder and replace the existinginstall.wimfile with theinstall.wimfrom the second USB stick (the one created withdism).- Original file path:
<working_directory>\sources\install.wim
- New file path (from second USB):
<second_USB_drive_letter>:\install.wim
- Original file path:
-
Install the Windows ADK (Assessment and Deployment Kit):
- Using Chocolatey:
choco install windows-adk
- Or by using the official installer:
- Using Chocolatey:
-
Open Deployment and Imaging Tools Environment as Administrator.
-
Once you are inside the working directory, run the following command (all on one line), replacing the values in
<...>with your paths:oscdimg.exe -m -o -u2 -udfver102 -bootdata:2#p0,e,b<Source Path>\boot\etfsboot.com#pEF,e,b<Source Path>\efi\microsoft\boot\efisys.bin <Source Path> <Saving path and name of file>
Where:
<Source Path>→ the full path of the working directory (for exampleC:\WinISO_Workdir)<Saving path and name of file>→ the full path and file name of the ISO you want to create- Example:
D:\ISOs\Custom_Windows11.iso
- Example:
-
When the command finishes successfully, your custom ISO image will be available at:
<Saving path and name of file>🎉💾




