Skip to content

Instantly share code, notes, and snippets.

@andrewl3wis
Last active October 5, 2017 20:30
Show Gist options
  • Save andrewl3wis/e26a5d2f83a9d0ce60fc to your computer and use it in GitHub Desktop.
Save andrewl3wis/e26a5d2f83a9d0ce60fc to your computer and use it in GitHub Desktop.
#!ipxe
set boot-url http://192.168.110.1/
:start
menu iPXE Boot Menu
item Windows-Install Install Windows
item shell shell
item --key x exit Exit iPXE and continue BIOS boot
choose --timeout ${menu-timeout} --default ${menu-default} selected || goto cancel
set menu-timeout 0
goto ${selected}
:shell
shell
:Windows-Install
set base-url ${boot-url}/WinPE_x64
kernel http://192.168.1.110/wimboot
initrd ${base-url}/bootmgr bootmgr
initrd ${base-url}/boot/bcd BCD
initrd ${base-url}/boot/boot.sdi boot.sdi
initrd ${base-url}/sources/boot.wim boot.wim
imgstat
boot || goto failed
goto start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment