How to Create a Windows installer on a USB drive

sgdisk --zap-all /dev/sdb
sgdisk --new=0:0+30G --typecode=0:ef00 --change-name=0:'EFI System' /dev/sdb
mkfs.fat -F32 /dev/sdb1
mkdir /tmp/WindowsISO
mount -o loop,ro /path/to/Win11_English_x64.iso /tmp/WindowsISO
mount /dev/sdb1 /mnt
cp -r /tmp/WindowsISO/* /mnt/
rm /mnt/sources/install.wim
wimsplit /tmp/WindowsISO/sources/install.wim /mnt/sources/install.swm 3800
Tags linux usb windows
pancho horrillo
I do things with computers.