Skip to content

Instantly share code, notes, and snippets.

@memoryleak
Created October 18, 2025 10:48
Show Gist options
  • Save memoryleak/7ceb8afffce8714f8e76c2937aae3b2f to your computer and use it in GitHub Desktop.
Save memoryleak/7ceb8afffce8714f8e76c2937aae3b2f to your computer and use it in GitHub Desktop.
Create a bootable USB stick from the Windows 11 ISO on Mac via Terminal
brew install wimlib
diskutil eraseDisk MS-DOS "WIN11" MBR /dev/disk4
rsync -avh --exclude="sources/install.wim" /Volumes/CCCOMA_X64FRE_EN-GB_DV9/ /Volumes/WIN11/
wimlib-imagex split /Volumes/CCCOMA_X64FRE_EN-GB_DV9/sources/install.wim /Volumes/WIN11/sources/install.swm 3800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment