Skip to content

Instantly share code, notes, and snippets.

@stevehansen
Created October 9, 2023 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevehansen/49fb349ee76da20cf29da1456655a07f to your computer and use it in GitHub Desktop.
Save stevehansen/49fb349ee76da20cf29da1456655a07f to your computer and use it in GitHub Desktop.
Create a bootable Windows USB stick
@echo off
REM in this sample F: is the drive where the .iso is mounted, E: is the stick, it should be formatted as ntfs
REM copy over all files from the .iso to the stick
xcopy F:\*.* E: /s/e/f
REM make the stick bootable
F:\Boot\Bootsect /NT60 E: /force /mbr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment