Created
July 23, 2018 06:56
-
-
Save a73xsh/3dc565bd2105a63979df5c76e373601e to your computer and use it in GitHub Desktop.
Windows UEFI ISO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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