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

  1. Create a temporary local directory to store the files that you will extract.
    For example: C:\BMC_BL\tmpboot
  2. If you have installed Windows Assessment and Deployment Kit (ADK), perform the following steps:
    1. Create a \Tools\PETools subdirectory within the ADK installation directory (typically C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\).
    2. 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.
  3. 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
  4. 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
  5. Change directories (cd) to the \Tools\PETools subdirectory.
  6. If you have installed WAIK, use the following command to update the paths of the DISM and ImageX utilities:
    pesetenv.cmd
  7. 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>

    Include "AMD64" in the syntax if you are using a 64-bit processor.
    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.

    Example

    If you have WAIK installed:
    extractpxeboot C:\BMC_BL\tmpboot C:\Program Files\WinAIK

    If you have ADK installed:
    extractpxeboot C:\BMC_BL\tmpboot C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit

  8. 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


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*