Extracting boot files for WinPE images
After creating the images with CreateWinPE2_x.vbs or CreateWinPE5_1.vbs, you extract the pxeboot.0 and bootmgr.exe files and copy them to the TFTP server.
To extract and copy boot files
- Create a temporary local directory to store the files that you will extract.
For example: C:\BMC_BL\tmpboot - If you have installed Windows Assessment and Deployment Kit (ADK), perform the following steps:
- Create a \Tools\PETools subdirectory within the ADK installation directory (typically C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\).
- From the Windows Preinstallation Environment subdirectory in the ADK installation directory, copy the amd64 and x86 subdirectories into the \Tools\PETools subdirectory that you created.
- Navigate to the provisioning files that you extracted from <version>-provision-files.zip (which you obtained from within the main product package that you downloaded from the EPD site) into a temporary directory. In the \provisioning\winpe\ directory, locate the extractpxeboot.vbs script, and copy this file into the \Tools\PETools subdirectory of the Microsoft Windows Automated Installation Kit (WAIK) installation directory or the Windows Assessment and Deployment Kit (ADK) installation directory.
For example:- WAIK: C:\Program Files\WinAIK\Tools\PETools
- ADK: C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Tools\PETools
- Open a command prompt using the following method:
- WAIK: Start > Microsoft Windows AIK > Deployment Tools Command Prompt
- ADK: Start > Windows Kit > Windows ADK > Deployment and Imaging Tools Environment
- Change directories (cd) to the \Tools\PETools subdirectory.
- If you have installed WAIK, use the following command to update the paths of the DISM and ImageX utilities:
pesetenv.cmd Run the extractpxeboot.vbs script to extract pxeboot.0 and bootmgr.exe. Use the following command syntax:
AMD<64/32> extractpxeboot <DestDir> <WAIK/ADK_dir>
where <DestDir> is the temporary local storage directory that you created at the beginning of this procedure and <WAIK/ADK_dir> is the WAIK or ADK installation directory.- Look at the contents of C:\BMC_BL\tmpboot. You should see pxeboot.0 and bootmgr.exe.
Copy these files to the following locations on the TFTP server:- Copy pxeboot.0 into <tftproot>\x86pc\pxelinux.
For example: C:\tftproot\x86\pxelinux\pxeboot.0 - Copy bootmgr.exe into <tftproot>.
For example: C:\tftproot\bootmgr.exe
- Copy pxeboot.0 into <tftproot>\x86pc\pxelinux.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*