if you are booting UEFI with iPXE and the WinPE complains that it can’t find the peSetup.cmd the note that under UEFI iPXE uses different syntax to name the downloaded files:
initrd --name peSetup.cmd <%= foreman_url(‘script’) %>
initrd --name BCD ${boot-url}<%= @host.operatingsystem.bootfile(medium_provider,:bcd) %>
initrd --name boot.sdi ${boot-url}<%= @host.operatingsystem.bootfile(medium_provider,:bootsdi) %>
initrd --name boot.wim ${boot-url}<%= @host.operatingsystem.bootfile(medium_provider,:bootwim) %>