Skip to content

Instantly share code, notes, and snippets.

@bhagatparwinder
Created November 23, 2023 18:22
Show Gist options
  • Save bhagatparwinder/24f917c4baf9efa861de30928da96eac to your computer and use it in GitHub Desktop.
Save bhagatparwinder/24f917c4baf9efa861de30928da96eac to your computer and use it in GitHub Desktop.
Create bootable Windows USB on Mac
  • Download/Mount the ISO from Microsoft: https://www.microsoft.com/software-download/windows11
  • List your drives: diskutil list
  • Format drive: diskutil eraseDisk MS-DOS WINDOWS GPT /dev/diskX (replace diskX with your disk identifier)
  • Copy all files from ISO excluding install.wim (too big for FAT32)
    • rsync -vha --exclude=sources/install.wim /Volumes/CCCOMA_X64FRE_EN-US_DV9/* /Volumes/WINDOWS
  • Install wimlib to split install.wim brew install wimlib
    • wimlib-imagex split /Volumes/CCCOMA_X64FRE_EN-US_DV9/sources/install.wim /Volumes/WINDOWS/sources/install.swm 3500
    • Split size could be anything under 4GB
  • Profit 🤑
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment