Creating a boot (WinPE) file

You can create boot files that can be used to customize Windows images.

Before you begin


To create a boot file, complete the following steps.

  1. Using a user ID with administrator authority, run the Windows ADK command "Deployment and Imaging Tools Environment." A command session is displayed.
  2. From the command session, change to the directory where the genimage.cmd and starnet.cmd files were downloaded (for example, C:\customwim).
  3. Ensure that no previously mounted images are on the host by running the following command:
    dism /get-mountedwiminfo

    If there are mounted images, discard them by running the following command:

    dism /unmount-wim /MountDir:C:\<mount_path> /Discard
  4. If you are adding in-box device drivers to a customized Windows profile, copy the raw device-driver files, in .inf format, to the host system in the C:\drivers directory.
  5. Run the following command to generate the boot file, in .wim format, and then wait a few minutes for the command to complete.
    genimage.cmd amd64 <ADK_Version>
    Where <ADK_Version> is one of the following values.
    • 8.1. For Windows 2012 R1 and 2012 R2

    • 10. For Windows 2016

    This command creates the boot file: C:\WinPE_64\media\Boot\WinPE_64.wim.

  6. Mount the boot file by running the following command:
    DISM /Mount-Image /ImageFile:C:\WinPE_64\media\Boot\WinPE_64.wim /index:1 /MountDir:C:\WinPE_64\mount
  7. If you are adding out-of-box device drivers directly to the boot file, complete the following steps.
    1. Create the following directory structure, where <os_release> is 2012, 2012R2, or 2016

    2. Copy the device drivers, in .inf format, to a directory inside that path, for example:

    3. Copy the drivers directory to the mount directory, for example:

  8. Optional: Make additional customizations to the boot file, such as adding folders, files, startup scripts, language packs, and apps. For more information about customizing boot files, see the WinPE: Mount and Customize website.
  9. Unmount the image by running the following command.
    DISM /Unmount-Image /MountDir:C:\WinPE_64\mount /commit
  10. Compress the contents of the C:\WinPE_64\media directory into a zip file called
  11. Import the .zip file into XClarity Administrator (see Importing boot files).