Skip to content

Instantly share code, notes, and snippets.

@codeniko
Created March 8, 2023 19:38
Show Gist options
  • Save codeniko/a89e4476379e1c7ca69f83ca259863ee to your computer and use it in GitHub Desktop.
Save codeniko/a89e4476379e1c7ca69f83ca259863ee to your computer and use it in GitHub Desktop.
Windows 10/11 iso burn to USB from mac
// Disk N is the id of the external usb drive from the diskutil commands
// This transfers most files over except for the >4GB file, which we need to use 3rd party tool to split
// Double tap the Windows 11/10 iso to mount it, plug in the USB
brew install wimlib
diskutil list
diskutil eraseDisk MS-DOS "WINDOWS11" MBR diskN
ls /Volumes
rsync -avh --progress --exclude=sources/install.wim /Volumes/CCCOMA_X64FRE_EN-US_DV9/ /Volumes/WINDOWS11
wimlib-imagex split /Volumes/CCCOMA_X64FRE_EN-US_DV9/sources/install.wim /Volumes/WINDOWS11/sources/install.swm 4000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment