Skip to content

Instantly share code, notes, and snippets.

@a73xsh
Created July 23, 2018 06:56
Show Gist options
  • Save a73xsh/3dc565bd2105a63979df5c76e373601e to your computer and use it in GitHub Desktop.
Save a73xsh/3dc565bd2105a63979df5c76e373601e to your computer and use it in GitHub Desktop.
Windows UEFI ISO
# Path to the Extracted or Mounted Windows ISO
$ISOMediaFolder = 'E:\'
# Path to new re-mastered ISO
$ISOFile = 'C:\Users\lamw\Desktop\Windows2016.iso'
# Need to specify the root directory of the oscdimg.exe utility which you need to download
$PathToOscdimg = 'C:\Program Files\Windows AIK\Tools\PETools'
# Instead of pointing to normal efisys.bin, use the *_noprompt instead
$BootData='2#p0,e,b"{0}"#pEF,e,b"{1}"' -f "$ISOMediaFolder\boot\etfsboot.com","$ISOMediaFolder\efi\Microsoft\boot\efisys_noprompt.bin"
# re-master Windows ISO
Start-Process -FilePath "$PathToOscdimg\oscdimg.exe" -ArgumentList @("-bootdata:$BootData",'-u2','-udfver102',"$ISOMediaFolder","$ISOFile") -PassThru -Wait -NoNewWindow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment