Skip to content

Instantly share code, notes, and snippets.

@rpc180
Last active March 7, 2024 09:06
Show Gist options
  • Save rpc180/bc3e39daac329ed4de146a43ed3bc73e to your computer and use it in GitHub Desktop.
Save rpc180/bc3e39daac329ed4de146a43ed3bc73e to your computer and use it in GitHub Desktop.
Using oscdimg.exe to create a bootable Windows ISO with updated contents
# oscdimg.exe is installed along with Microsoft Windows 10 Deployment Toolkit
# located in "C:\Program Files (x86)\Windows Kits\10\Aessessment and Deployment Kit\Deployment Tools"
# Copy executable and etfsboot.com and efisys.bin to same folder as executable so it can resolve
# agrument locations are relative paths, does not seem to support absolute path from root
# 2#p0 stuff is not a typo.
oscdimg.exe -m -o -u2 -udfver102 -bootdata:2#p0,e,betfsboot.com#pEF,e,befisys.bin Win10_source\subfolder unattend_Win10Ent1607x64.iso
oscdimg.exe -m -o -u2 -udfver102 -bootdata:2#p0,e,bd:\workingmount\boot\etfsboot.com#pEF,e,bd:\workingmount\efi\microsoft\boot\efisys.bin d:\workingmount d:\support\Server2016_Test.iso
Original article: https://www.techtarget.com/searchenterprisedesktop/tip/How-to-create-a-custom-ISO-for-Windows-10
Under section Windows imaging tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment