{"id":7250,"date":"2025-07-25T13:28:21","date_gmt":"2025-07-25T20:28:21","guid":{"rendered":"https:\/\/www.terabyteunlimited.com\/kb\/?post_type=lsvr_kba&#038;p=7250"},"modified":"2025-08-12T11:50:37","modified_gmt":"2025-08-12T18:50:37","slug":"pxe-boot-tbwinpe-re-using-tiny-pxe","status":"publish","type":"lsvr_kba","link":"https:\/\/www.terabyteunlimited.com\/kb\/kb-articles\/pxe-boot-tbwinpe-re-using-tiny-pxe\/","title":{"rendered":"PXE Boot TBWinPE\/RE using Tiny PXE"},"content":{"rendered":"  <p style=\"background-color:#EEE;\"><font color=\"#005858\"><strong>Introduction<\/strong><\/font><\/p>\r\n  <p>This tutorial provides instructions on how to PXE boot TBWinPE\/RE using Tiny PXE and iPXE. This allows booting either the TBWinRE WIM or ISO file or even selecting between different build versions. Both x64 Legacy and x64 UEFI PXE booting is supported using IPv4.<\/p>\r\n  <p>A basic understanding of networking, PXE booting, and creating TBWinPE\/RE builds is assumed.<\/p>\r\n  <p>The following program paths are used in this tutorial (if using different paths, adjust the instructions accordingly):<\/p>\r\n  <ul>\r\n    <li><strong>C:&#92;TBWinRE<\/strong> -- Contains the TBWinRE files for the PXE build that will be booted. The TBWinRE files can be copied from the installed IFW tbwinre folder location or downloaded from the TeraByte website (<a href=\"https:\/\/www.terabyteunlimited.com\/downloads\/wp\/tbwinre.zip\" target=\"_blank\">tbwinre.zip<\/a>) and extracted to the folder. Note: While a TBWinRE build is created in this tutorial, a TBWinPE build could also be used.<br>\r\n      <br>\r\n    <\/li>\r\n    <li><strong>C:&#92;TinyPXE<\/strong> -- Contains the Tiny PXE program and associated files.<\/li>\r\n  <\/ul>\r\n  <p>In this tutorial, Tiny PXE is configured for the following. Depending on your network and systems, it may be necessary to use alternate settings.<\/p>\r\n  <ul>\r\n    <li>ProxyDHCP is enabled: There is already an existing DHCP server on the LAN (e.g. a router is assigning IP addresses). The existing DHCP server isn't modified.<\/li>\r\n    <li>HTTPd is enabled: This runs a web server that allows downloading large files using HTTP, which is many times faster than using the TFTP default.<\/li>\r\n    <li>Tiny PXE can be run and set online as needed for PXE booting.<\/li>\r\n    <\/ul>\r\n  <p>Note: Secure Boot  may need to be disabled when booting UEFI systems.<\/p>\r\n<p style=\"background-color:#EEE;\"><font color=\"#005858\"><strong>1. Download Required Files<\/strong><\/font><\/p>\r\n  <p>Download and extract the Tiny PXE Server pxesrv.zip file:<\/p>\r\n  <p>Tiny PXE Server (on GitHub): <a href=\"https:\/\/github.com\/erwan2212\/tinypxeserver\" target=\"_blank\">https:\/\/github.com\/erwan2212\/tinypxeserver<\/a><br>\r\n    Direct download link for pxesrv.zip: \r\n      <a href=\"https:\/\/github.com\/erwan2212\/tinypxeserver\/raw\/refs\/heads\/main\/pxesrv.zip\" target=\"_blank\">https:\/\/github.com\/erwan2212\/tinypxeserver\/raw\/refs\/heads\/main\/pxesrv.zip<\/a><\/p>\r\n  <ul>\r\n    <li>Extract pxesrv.zip to the <strong>C:&#92;TinyPXE<\/strong> folder. If you use an alternate location, make sure to update the path where it's used in this tutorial.<\/li>\r\n  <\/ul>\r\n  <p style=\"background-color:#EEE;\"><font color=\"#005858\"><strong>2. Create TBWinRE PXE Build<\/strong><\/font><\/p>\r\n  <p>In this step, TBWinPE\/RE Builder will be run and configured. The <em>Tiny PXE Server<\/em> plugin will be downloaded, installed, and enabled for the build. Then a TBWinRE build will be created using the currently configured settings.<\/p>\r\n  <p>Note: The <em>Tiny PXE Server<\/em> plugin is intended to initially configure Tiny PXE. Generally, it's not necessary or intended to be run each time a TBWinPE\/RE build is created. Additionally, if you plan to PXE boot multiple Windows WIM versions (e.g. Windows 10 and Windows 11), configuring on the later Windows version is recommended so the current booting files are used.<\/p>\r\n  <ol>\r\n    <li>Run TBWinPE\/RE Builder and go into Settings and select the <em>Plugins<\/em> tab.<\/li>\r\n    <li>Click the <strong>Download Plugins<\/strong> button. Select (check) the <em>Tiny PXE Server<\/em> plugin and click the <strong>Install selected plugins<\/strong> button. <\/li>\r\n    <li>Once back on the <em>Plugins<\/em> tab, enable (check) the <em>Tiny PXE Server<\/em> plugin. If you used an alternate folder location for the files, select (highlight) the <em>Tiny PXE Server<\/em> plugin in the list, click the <strong>Configure<\/strong> button, and update the folder as needed.<\/li>\r\n    <li>In the General Options section, enable the <strong>Include plugins in build<\/strong> option. <\/li>\r\n    <li>If needed, configure any other build options as desired.<\/li>\r\n    <li>Click <strong>OK<\/strong> to save the changes.<\/li>\r\n    <li>Create the TBWinRE build normally.<\/li>\r\n    <li>If you will be using the TBWinRE ISO file, run MakeDisk and create it. Using a short filename with no spaces is recommended (e.g. tbwinre.iso).<\/li>\r\n  <\/ol>\r\n  <p style=\"background-color:#EEE;\"><font color=\"#005858\"><strong>3. Copy Build WIM and\/or ISO file to Tiny PXE Folders<\/strong><\/font><\/p>\r\n<p>After the build has successfully finished, copy the following files to the Tiny PXE location as indicated below.<\/p>\r\n<p>From the <strong>C:&#92;TBWinRE&#92;ISO&#92;sources<\/strong> folder:<\/p>\r\n  <ul>\r\n    <li>Copy <strong>boot.wim<\/strong> to the <strong>C:&#92;TinyPXE&#92;files&#92;boot<\/strong> folder. Note: The boot.wim file is copied by the plugin if using v1.1 or later.<\/li>\r\n    <\/ul>\r\n  <p>If you will be booting the TBWinRE ISO file:<\/p>\r\n  <ul>\r\n    <li>Copy the ISO file to the <strong>C:&#92;TinyPXE&#92;files&#92;iso<\/strong> folder (create the <strong>iso<\/strong> folder, if necessary).<\/li>\r\n  <\/ul>\r\n<p style=\"background-color:#EEE;\"><font color=\"#005858\"><strong>4. The iPXE Script File (tbwinpe.txt)<\/strong><\/font><\/p>\r\n<p>The iPXE script file (C:&#92;TinyPXE&#92;files&#92;tbwinpe.txt, in this example) is created automatically by the plugin and is configured to boot a WIM file. If you will be booting an ISO file instead, edit the file and replace the code as shown in the example below for booting a single ISO file.<\/p>\r\n<p style=\"background-color:#EEE;\"><font color=\"#005858\"><strong>5. Run Tiny PXE<\/strong><\/font><\/p>\r\n<p>Run Tiny PXE Server (pxesrv.exe). The program does not require administrator privileges. Confirm the settings are correct (adjust if necessary).<\/p>\r\n<ul>\r\n  <li>The <strong>ProxyDhcp<\/strong> option is enabled.<\/li>\r\n  <li>The <strong>HTTPd<\/strong> option is enabled.<\/li>\r\n  <li><strong>Option 54 (DHCP Server)<\/strong> is the IP address for the system running Tiny PXE. If the system has multiple network adaptors, make sure the correct network is selected.<\/li>\r\n  <li><strong>Next-Server<\/strong> is the IP address for the system running Tiny PXE.<\/li>\r\n  <li>In the Boot File section, <strong>Filename<\/strong> is set to <strong>ipxe.pxe<\/strong>.<\/li>\r\n  <li>In the Boot File section, the <strong>Filename if user-class=gPXE or iPXE<\/strong> option is enabled and the selected file is <strong>tbwinpe.txt<\/strong>. This is the iPXE script to run.<\/li>\r\n<\/ul>\r\n<p>Right-clicking in the log output area at the top of the window will open a context menu with several options, such as saving settings or opening the config file.<\/p>\r\n<p>When ready, click the <strong>Online<\/strong> button to start the server. If prompted, allow the program through the firewall. If necessary, make sure the following ports are allowed for incoming connections, as needed:<\/p>\r\n<table width=\"314\" border=\"2\" cellspacing=\"2\" cellpadding=\"2\" style=\"border-collapse:collapse;\">\r\n  <tr style=\"background-color:#CFF;\">\r\n    <td width=\"114\">Service\/Protocol<\/td>\r\n    <td width=\"71\">Port<\/td>\r\n    <td width=\"101\">TCP\/UDP<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td>DHCP<\/td>\r\n    <td>67<\/td>\r\n    <td>UDP<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td>DNS<\/td>\r\n    <td>53<\/td>\r\n    <td>UDP<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td>HTTP<\/td>\r\n    <td>80<\/td>\r\n    <td>TCP<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td>Proxy DHCP<\/td>\r\n    <td>4011<\/td>\r\n    <td>UDP<\/td>\r\n  <\/tr>\r\n  <tr>\r\n    <td>TFTP<\/td>\r\n    <td>69<\/td>\r\n    <td>UDP<\/td>\r\n  <\/tr>\r\n<\/table>\r\n<p>The window will display log output as systems connect and files are requested. This information can be helpful for troubleshooting purposes.<\/p>\r\n<p>Once the basic booting setup is working, if desired, you can change or expand what boots by adding a menu to select other WIM or ISO files using the example below. If needed, the C:&#92;TinyPXE folder (in its entirety) can be moved to another system. For example, the TBWinRE build was created on a Windows 11 system, but a Windows 10 system is being used to run the PXE server -- just don't run it simultaneously on multiple systems on the same LAN.<\/p>\r\n<hr \/><hr \/>\r\n  <p><strong>Example iPXE Scripts<\/strong><\/p>\r\n  <p>Note: Long lines in the example code may wrap depending on the width of the browser window.<\/p>\r\n<p>Note: The wimboot \"pause\" parameter is being used to pause booting once the files are loaded (pressing a key will continue booting). This can be helpful while configuring the setup and while testing. Remove the \"pause\" parameter to boot directly. For example, the 'wimboot' line would be changed to:<\/p>\r\n<p style=\"background-color:#F6FCFF;\"><font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>kernel ${boot-url}\/wimboot<\/strong><\/font><\/p>\r\n  <p><font color=\"#005858\"><strong>Booting a Single WIM File<\/strong><\/font><\/p>\r\n  <p>This script boots a single WIM file (boot.wim) located in the <strong>C:&#92;TinyPXE&#92;files&#92;boot<\/strong> folder. This is the script code used by the plugin.<\/p>\r\n  <p style=\"background-color:#F6FCFF;\"><font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>#!ipxe<br>\r\n    set boot-url http:\/\/${dhcp-server}<br>\r\n    kernel ${boot-url}\/wimboot pause<br>\r\n    iseq ${platform} pcbios &amp;&amp; initrd -n bootmgr.exe  ${boot-url}\/BOOTMGR.EXE  bootmgr.exe ||<br>\r\n    iseq ${platform} efi    &amp;&amp; initrd -n bootx64.efi  ${boot-url}\/BOOTX64.EFI  bootx64.efi ||<br>\r\n    initrd -n bcd           ${boot-url}\/BOOT\/BCD        bcd<br>\r\n    initrd -n boot.sdi      ${boot-url}\/BOOT\/BOOT.SDI   boot.sdi <br>\r\n    initrd -n boot.wim      ${boot-url}\/BOOT\/BOOT.WIM   boot.wim<br>\r\n    boot<\/strong><\/font>\r\n  <\/p>\r\n  <p><font color=\"#005858\"><strong>Booting a Single ISO File<\/strong><\/font><\/p>\r\n  <p>This script boots a single ISO file (tbwinre.iso) located in the <strong>C:&#92;TinyPXE&#92;files&#92;iso<\/strong> folder.<\/p>\r\n  <p style=\"background-color:#F6FCFF;\"><font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>#!ipxe<br>\r\n    set boot-url http:\/\/${dhcp-server}<br>\r\n    sanboot --no-describe ${boot-url}\/iso\/tbwinre.iso<br>\r\n    boot<\/strong><\/font>\r\n  <\/p>\r\n  <p><font color=\"#005858\"><strong>Menu Booting Multiple WIM &amp; ISO Files<\/strong><\/font><\/p>\r\n  <p>This script boots two WIM files (boot10.wim, boot11.wim) located in the <strong>C:&#92;TinyPXE&#92;files&#92;boot<\/strong> folder. The script also boots four ISO files (tbwinre10.iso, tbwinre11.iso, ifugui4.iso, iflgui4.iso) located in the <strong>C:&#92;TinyPXE&#92;files&#92;iso<\/strong> folder.<\/p>\r\n  <p style=\"background-color:#F6FCFF;\"><font color=\"#008800\" face=\"Courier New, Courier, monospace\"><strong>#!ipxe<br>\r\n    set boot-url http:\/\/${dhcp-server}<br>\r\n    menu iPXE Boot Menu<br>\r\n    item --gap WIM Files<br>\r\n    item winpe10 Windows 10 TBWinRE WIM (wimboot)<br>\r\n    item winpe11 Windows 11 TBWinRE WIM (wimboot)<br>\r\n    item --gap<br>\r\n    item --gap ISO Files<br>\r\n    item iso10 Windows 10 TBWinRE ISO (sanboot)<br>\r\n    item iso11 Windows 11 TBWinRE ISO (sanboot)<br>\r\n    item isoifu IFU GUI ISO (sanboot)<br>\r\n    item isoifl IFL GUI ISO (sanboot)<br>\r\n    choose target &amp;&amp; goto ${target}<br>\r\n    <br>\r\n    :winpe10<br>\r\n    kernel ${boot-url}\/wimboot pause<br>\r\n    iseq ${platform} pcbios &amp;&amp; initrd -n bootmgr.exe  ${boot-url}\/BOOTMGR.EXE  bootmgr.exe ||<br>\r\n    iseq ${platform} efi    &amp;&amp; initrd -n bootx64.efi  ${boot-url}\/BOOTX64.EFI  bootx64.efi ||<br>\r\n    initrd -n bcd           ${boot-url}\/BOOT\/BCD        bcd<br>\r\n    initrd -n boot.sdi      ${boot-url}\/BOOT\/BOOT.SDI   boot.sdi <br>\r\n    initrd -n boot.wim      ${boot-url}\/BOOT\/BOOT10.WIM   boot.wim<br>\r\n    boot<br>\r\n    <br>\r\n    :winpe11<br>\r\n    kernel ${boot-url}\/wimboot pause<br>\r\n    iseq ${platform} pcbios &amp;&amp; initrd -n bootmgr.exe  ${boot-url}\/BOOTMGR.EXE  bootmgr.exe ||<br>\r\n    iseq ${platform} efi    &amp;&amp; initrd -n bootx64.efi  ${boot-url}\/BOOTX64.EFI  bootx64.efi ||<br>\r\n    initrd -n bcd           ${boot-url}\/BOOT\/BCD        bcd<br>\r\n    initrd -n boot.sdi      ${boot-url}\/BOOT\/BOOT.SDI   boot.sdi <br>\r\n    initrd -n boot.wim      ${boot-url}\/BOOT\/BOOT11.WIM   boot.wim<br>\r\n    boot<br>\r\n    <br>\r\n    :iso10<br>\r\n    sanboot --no-describe ${boot-url}\/iso\/tbwinre10.iso<br>\r\n    boot<br>\r\n    <br>\r\n    :iso11<br>\r\n    sanboot --no-describe ${boot-url}\/iso\/tbwinre11.iso<br>\r\n    boot<br>\r\n    <br>\r\n    :isoifu<br>\r\n    sanboot --no-describe ${boot-url}\/iso\/ifugui4.iso<br>\r\n    boot<br>\r\n    <br>\r\n    :isoifl<br>\r\n    sanboot --no-describe ${boot-url}\/iso\/iflgui4.iso<br>\r\n    boot<\/strong><\/font>\r\n  <\/p>\r\n<hr \/>\r\n  <p><strong>Links for More Information<\/strong><\/p>\r\n  <p>Tiny PXE Tutorial: <a href=\"http:\/\/mistyprojects.co.uk\/documents\/TinyPXEServer\/index.html\" target=\"_blank\">http:\/\/mistyprojects.co.uk\/documents\/TinyPXEServer\/index.html<\/a><br>\r\n    iPXE: <a href=\"https:\/\/ipxe.org\/start\" target=\"_blank\">https:\/\/ipxe.org\/start<\/a><br>\r\n    wimboot: \r\n    <a href=\"https:\/\/ipxe.org\/wimboot\" target=\"_blank\">https:\/\/ipxe.org\/wimboot<\/a><\/p>\r\n  <p>\r\n","protected":false},"excerpt":{"rendered":"<p>Introduction This tutorial provides instructions on how to PXE boot TBWinPE\/RE using Tiny PXE and iPXE. This allows booting either the TBWinRE WIM or ISO file or even selecting between different build versions. Both x64 Legacy and x64 UEFI PXE booting is supported using IPv4. A basic understanding of networking, PXE booting, and creating TBWinPE\/RE [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"lsvr_kba_cat":[1796],"lsvr_kba_tag":[],"class_list":["post-7250","lsvr_kba","type-lsvr_kba","status-publish","hentry","lsvr_kba_cat-general-information-image-for-windows"],"_links":{"self":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/7250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/comments?post=7250"}],"version-history":[{"count":5,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/7250\/revisions"}],"predecessor-version":[{"id":7259,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/7250\/revisions\/7259"}],"wp:attachment":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/media?parent=7250"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_cat?post=7250"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_tag?post=7250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}