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. Open a command window and change directories to 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: C:\Program Files\WinAIK\Tools\PETools or C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Tools\PETools.
  4. Navigate to the provisioning files that you extracted from provision-files.zip into a temporary directory. In the \provisioning\winpe\ directory, locate the extractpxeboot.vbs script, and copy this file into the \Tools\PETools subdirectory.
  5. If you have installed WAIK, start the WinPE command prompt by typing:
    pesetenv.cmd
  6. Run the extractpxeboot.vbs script to extract pxeboot.0 and bootmgr.exe. Use the following syntax:
    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.

    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

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