Site icon Công Nghệ 247

WinPE: Create bootable media

WinPE: Create bootable media

The Windows Assessment and Deployment Kit (ADK) deployment tools and ADK WinPE Add ons, include command-line utilities that make it easy to create bootable WinPE media:

Note

[external_link_head]

If you’re using the ADK for Windows 10, version 1803 or earlier, Windows PE is included in the ADK when you choose the Windows Preinstallation environment option during setup and doesn’t require a separate addon.

Step 1: Create working files

No matter what type of media you’re going to create, the first thing to do is create a working set of WinPE files on your technician PC.

  1. Make sure your PC has the ADK and ADK WinPE add-on installed.

  2. Start the Deployment and Imaging Tools Environment as an administrator.

  3. Run copype to create a working copy of the Windows PE files. For more information about copype, see Copype command line options.

    copype amd64 C:\WinPE_amd64 

Step 2: Customize WinPE (Usually not needed)

Note, when you add more packages to WinPE, it slows WinPE performance and boot time. Only add additional packages when necessary.

Common customizations

Now that you now have a set of working files, you can use MakeWinPEMedia to build bootable WinPE media.

Create a bootable WinPE USB drive

  1. Attach a USB drive to your technician PC.

  2. Start the Deployment and Imaging Tools Environment as an administrator.

  3. Optional You can format your USB key prior to running MakeWinPEMedia. MakeWinPEMedia will format your WinPE drive as FAT32. If you want to be able to store files larger than 4GB on your WinPE USB drive, you can create a multipartition USB drive that has an additional partition formatted as NTFS. See Create a multipartition USB drive for instructions.

  4. Use MakeWinPEMedia with the /UFD option to format and install Windows PE to the USB flash drive, specifying the USB key’s drive letter:

    MakeWinPEMedia /UFD C:\WinPE_amd64 P: 

    Warning

    This command reformats the partition.

    See MakeWinPEMedia command line options for all available options.

The bootable WinPE USB drive is ready. You can use it to boot a PC into WinPE.

Create a WinPE ISO, DVD, or CD

  1. Use MakeWinPEMedia with the /ISO option to create an ISO file containing the Windows PE files:

    MakeWinPEMedia /ISO C:\WinPE_amd64 C:\WinPE_amd64\WinPE_amd64.iso 
  2. Optional Burn a DVD or CD: In Windows Explorer, right-click the ISO file, and select Burn disc image > Burn, and follow the prompts.

Create a WinPE VHD to use with Hyper-V

You can create a bootable VHD to use with Hyper-V.

Tip

When running Windows PE in Hyper-V, consider using an ISO file format instead of a VHD to enable faster setup of the virtual PC.

[external_link offset=2]

To install Windows PE to a VHD:

  1. Create a virtual hard drive (.vhdx):

    diskpart create vdisk file="C:\WinPE.vhdx" maximum=1000 attach vdisk create partition primary assign letter=V format fs=ntfs quick exit 
  2. Prepare the drive by using MakeWinPEMedia:

    MakeWinPEMedia /UFD C:\WinPE_amd64 V: 
  3. Detach the drive:

    diskpart select vdisk file="C:\WinPE.vhdx" detach vdisk exit 

Troubleshooting

  1. If Windows PE doesn’t appear, try the following workarounds, rebooting the PC each time:

    • To boot a PC that supports UEFI mode: In the firmware boot menus, try manually selecting the boot files: \EFI\BOOT\BOOTX64.EFI.

    • If your PC requires storage or video drivers to boot, try adding those same drivers to the Windows PE image. For more information, see WinPE: Mount and Customize.

  2. If the PC doesn’t connect to network locations, see WinPE Network Drivers: Initializing and adding drivers.

WinPE for Windows 10

WinPE: Install on a Hard Drive (Flat Boot or Non-RAM)

WinPE: Mount and Customize

WinPE: Boot in UEFI or legacy BIOS mode

Windows Setup Supported Platforms and Cross-Platform Deployments [external_footer]

Scores: 4.2 (20 votes)

Thank for your voting!

Exit mobile version