Home News How to Boot Windows PE (WinPE) over PXE with iPXE and wimboot?
How to Boot Windows PE (WinPE) over PXE with iPXE and wimboot?
Boot Windows PE (WinPE) over PXE by serving wimboot alongside bootmgr, bootmgr.efi, BCD, boot.sdi, and boot.wim over HTTP from an iPXE script. Inject missing NIC and storage drivers into boot.wim offline, and use startnet.cmd to mount your SMB install share or run recovery tools.

Why use iPXE and wimboot for Windows PE over PXE?
Traditional Microsoft WDS relies on slow TFTP transfers and Windows-only server roles. Pairing iPXE with wimboot lets any Linux or Go PXE server—such as TNTCloud PXE Commercial—stream Windows PE (WinPE) over high-speed HTTP in seconds, supporting both Legacy BIOS and UEFI bare-metal hosts without WDS.
1. Required files for a WinPE PXE boot
Every WinPE PXE boot requires six core files extracted from the Windows ADK (WinPE add-on) or an official Windows installation ISO:
wimboot: The open-source iPXE bootloader that creates a virtual FAT filesystem in RAM and hands off execution to Windows.bootmgr&bootmgr.efi: Windows Boot Manager binaries for Legacy BIOS (pcbios) and UEFI (efi) respectively.BCD: Boot Configuration Data store pointing toboot.sdiandboot.wim.boot.sdi: System Deployment Image defining the RAM disk geometry.boot.wim: The compressed WinPE RAM disk image itself.
2. Minimal iPXE script for BIOS and UEFI WinPE
In iPXE, wimboot loads each file by name into its virtual RAM drive and boots automatically. Use --gui only if needed, and keep paths clean over HTTP:
#!ipxe
kernel http://pxe.example.local/winpe/wimboot
initrd -n bootmgr http://pxe.example.local/winpe/bootmgr bootmgr
initrd -n bootmgr.efi http://pxe.example.local/winpe/bootmgr.efi bootmgr.efi
initrd -n BCD http://pxe.example.local/winpe/BCD BCD
initrd -n boot.sdi http://pxe.example.local/winpe/boot.sdi boot.sdi
initrd -n boot.wim http://pxe.example.local/winpe/boot.wim boot.wim
boot
Note that wimboot automatically picks bootmgr in Legacy BIOS mode and bootmgr.efi in UEFI mode, so one iPXE script serves both firmware types—see our Legacy BIOS & UEFI PXE guide for DHCP Option 93 setup.
3. Customizing boot.wim: drivers and startnet.cmd
A stock boot.wim often lacks datacenter NIC, NVMe, or hardware RAID drivers. Mount boot.wim offline (using DISM on Windows or wimlib-imagex on Linux) to customize two things:
- Inject NIC and storage drivers: Add INF/SYS driver packages so WinPE can bring up networking (
wpeinit) and see local NVMe/RAID volumes before DiskPart runs. - Automate startup in
Windows\System32\startnet.cmd: Callwpeinitto initialize PnP and DHCP, map your SMB installation share withnet use, and launch eithersetup.exe /unattend:...for unattended installs or your rescue/diagnostics script.
4. Common WinPE PXE boot failures and fixes
0xc000000for missing BCD error: Verify the filename passed toinitrd -n BCDmatchesBCDexactly and that the HTTP server returns200 OK(not an HTML 404 or redirect).- WinPE boots but has no network or no disk:
boot.wimis missing the server’s NIC or storage controller driver, orwpeinitwas skipped instartnet.cmd. - Slow boot over TFTP: Always chainload iPXE first so
boot.wim(typically 300–600 MB) downloads over HTTP instead of TFTP.
Once WinPE boots reliably, follow our Unattended Windows Install over PXE guide for DiskPart partitioning, SMB install sources, and post-install handover.
Questions worth asking first
Can I boot Windows PE over PXE from a Linux server without WDS?
Yes. Using iPXE and wimboot, any HTTP server on Linux can serve boot.wim, BCD, boot.sdi, bootmgr, and bootmgr.efi without Microsoft WDS.
What files are required to PXE boot WinPE with wimboot?
You need wimboot, bootmgr (for BIOS), bootmgr.efi (for UEFI), BCD, boot.sdi, and boot.wim.
Why does WinPE boot to a command prompt with no network interface?
Either wpeinit was not executed in startnet.cmd, or boot.wim lacks the physical server's network adapter driver and needs offline driver injection.
Does wimboot support both Legacy BIOS and UEFI WinPE?
Yes. Modern wimboot supports both pcbios and efi platforms in iPXE when both bootmgr and bootmgr.efi are provided.