Skip to main content

WinPE: Create USB Bootable drive

Applies To: Windows 8, Windows 8.1, Windows Server 2012, Windows Server 2012 R2
Create a Windows PE (WinPE) bootable USB flash drive or an external USB hard drive.
The default installation runs from memory (RAM disk), so you can remove the drive while Windows PE is running.

Install the Windows ADK

  • Install the following features from the Windows Assessment and Deployment Kit (Windows ADK):
    • Deployment Tools: includes the Deployment and Imaging Tools Environment.
    • Windows Preinstallation Environment : includes the files used to install Windows PE.

Install Windows PE

  1. Start the Deployment and Imaging Tools Environment as an administrator.
  2. Create a working copy of the Windows PE files. Specify either x86, amd64, or arm:
    copype amd64 C:\WinPE_amd64
    
  3. Install Windows PE to the USB flash drive, specifying the drive letter:
    MakeWinPEMedia /UFD C:\WinPE_amd64 F:
    
    WarningWarning
    This command reformats the drive.

Boot to Windows PE

  1. Connect the USB device to the PC you want to work on.
  2. Turn on the PC, and press the key that opens the firmware boot menus.
  3. Select the USB drive. Windows PE starts automatically.
    After the command window appears, the wpeinit command runs, which sets up the system. This might take a few minutes.

Troubleshooting

  • If the copype command isn't recognized, make sure you're running the command from the Deployment and Imaging Tools Environment, which is part of the Windows ADK.
  • 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.
    • Try a different USB port. Avoid hubs or cables.
    • Avoid USB 3.0 ports if the firmware doesn't contain native support for USB 3.0.
    • Clean the USB flash drive, and then reinstall Windows PE. This can help remove extra boot partitions or other boot software.

      diskpart
        list disk
        select disk <disk number>
        clean
        create partition primary
        format quick fs=fat32 label="Windows PE"
        assign letter="F"
        exit
      
      MakeWinPEMedia /UFD C:\winpe_amd64 F:
      
    • Try booting Windows PE from a DVD instead. Create an ISO file that you can burn onto a DVD:

      MakeWinPEMedia /ISO C:\winpe_amd64 c:\winpe_amd64\winpe.iso
      
      In File Explorer, navigate to C:\winpe_amd64, right-click winpe.iso, and select Burn to disc. Follow the prompts to create a DVD.
    • If your PC requires storage or video drivers to boot, try adding those same drivers to the Windows PE image. For more info, see WinPE: Mount and Customize.
    • Update the firmware of the PC to the latest version.
  • If the PC doesn't connect to network locations, see WinPE Network Drivers: Initializing and adding drivers.

Storing Windows Images on the Windows PE Drive

  • Typically you won't be able to store or capture Windows images on a Windows PE USB flash drive.
    Most USB flash drives support only a single drive partition. The MakeWinPEMedia command formats the drive as FAT32, which supports booting both BIOS-based and UEFI-based PCs. This file format only supports file sizes up to 4 GB.
  • For external USB hard drives, you can create a separate NTFS partition that can handle larger file sizes:
    diskpart
      list disk
      select <disk number>
      clean
      rem === Create the Windows PE partition. ===
      create partition primary size=2000
      format quick fs=fat32 label="Windows PE"
      assign letter=P
      active
      rem === Create a data partition. ===
      create partition primary
      format fs=ntfs quick label="Other files"
      assign letter=O
      list vol
      exit
    
    MakeWinPEMedia /UFD C:\WinPE_amd64 P:
    

See Also

Comments

Popular posts from this blog

How to run Android on Windows Mobile Phone

Install Android on your HTC Windows Mobile phone – Guide

Welcome to the official XDANDROID AOSP thread which is dedicated to getting Android running on our beloved HTC devices.
Phhusson: has dedicated most of his time helping users and updating kernel to run Eclair and his work for other msm7k devices. However phhusson is not alone as there are also other members working on this. You can find some of them on http://www.htc-linux.org. I've listed some of the developers i know of that currently are working on and they deserve credits and thanks. We also have to note that before this work done there was quite a substantial number of people starting working on linux for our devices. Without them we may not be where we are today. So respect and credits to everyone involved in working on linux kernel for msm devices.
I am not responsible for any damages or problems your device encounters. The build is relatively safe and shouldn't cause any problems.

This tutorial wil…

OS Setup (Windows): Installing using the MBR or GPT partition style

Applies To: Windows 8.1 When installing Windows on UEFI-based PCs using Windows Setup, your hard drive partition style must be set up to support either UEFI mode or legacy BIOS-compatibility mode. For example, if you receive the error message: “Windows cannot be installed to this disk. The selected disk is not of the GPT partition style”, it’s because your PC is booted in UEFI mode, but your hard drive is not configured for UEFI mode. You’ve got a few options: Reboot the PC in legacy BIOS-compatibility mode. This option lets you keep the existing partition style. For more info, see Boot to UEFI Mode or Legacy BIOS mode.
Reformat the drive for UEFI by using the GPT partition style. This option lets you use the PC’s UEFI firmware features.

You can do this yourself by reformatting the drive using the instructions below, or if you need to preserve the data, use a third-party utility to convert the drive to GPT format.
Why should I convert my drive? Many PCs now include the ability to use the…

How to Remove Windows Genuine Advantage Notifications

Windows Genuine Advantage (WGA) notifications occur when your computer hasn't passed the validation test. The validation test can be failed due to being sold a pirated (non-genuine) copy of XP, or because you have changed your XP product key to a software-generated key, or sometimes it just happens for no reason at all. The failed validation installs three types of notifications on your computer: one on the log in screen, one log in timer, and one balloon. It also stops updates from Microsoft and disables your ability to install IE7 and Windows Media Player 11. This solution can get rid of all three notifications, even though you will still not be able to update through Windows Update. You will not be able to download things from Microsoft that requires a valid license either. EditSteps
Delete Method 1 If you have only just installed Windows Genuine Advantage notifications, simply using the system restore function will remove the program. Then refuse to accept the WGA update next tim…