make windows 10 install media from ISO file

I had a need to make install media to reset a windows 10 machine, here are my notes for next time.

Based on https://linuxconfig.org/creating-a-bootable-usb-for-windows-10-and-11-on-linux

Erase the data on the USB disk.

Partition table type: gpt.

Partitions:

  • BOOT, 1 GiB, fat32
  • INSTALL, rest, ntfs

Open the Windows installer ISO

Copy everything except sources to BOOT

Copy sources/boot.wim to BOOT/sources

Copy everything to INSTALL

I’m not sure if it actually boots, I used the setup.exe to reinstall windows.