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 Overcome the "No More Sessions are allowed for User Hotspot Mikrotik"

Login Error Message Hotspot Mikrotik there are many.   In his prior articles we have reviewed about the Explanation of Error Message in Mikrotik Hotspot Login page.   This time we will discuss one of Message Error during log Hotspot Mikrotik, namely  No More Sessions are allowed for User $ (username). Why does the error message no more sessions are allowed for user $ (username) should be discussed? Because of this error message is quite often appear at hotspot user login, especially if you use the same username and password for many people. Why no more sessions are allowed for user $ (username) can arise? From the translation into Indonesian we already know that: there is no more sessions are allowed for this username.   So here username to be used by a user had no sessions will be allowed to be used by the Server Hotspot user login.   This is caused by the configuration of the proxy hotspot on the shared user is limited, while users who want to log more than sha

How to Format a Large Hard Drive With FAT or FAT32

32 GB is the file size limit for partitions when formatting with the FAT or FAT32  file system  on Windows. What A File System Is & How You Can Find Out What Runs On Your Drives   What A File System Is & How You Can Find Out What Runs On Your Drives READ MORE Well, as some of you will know, FAT/FAT32 can actually handle up to 16 TB hard drives and up to 2 TB are supported in most operating systems. Microsoft has set a 32 GB partition size limit for the FAT/FAT32 file system to promote NTFS, which is generally more efficient when working with large partitions. In truth, this limitation only exists in recent versions of Windows. Moreover, Windows does recognize large hard drives formatted with FAT/FAT32. Finally, you can circumvent the 32 GB limit. In this article, I will show you how to format a large hard drive with FAT/FAT32 or create a 32+ GB partition with that file system. The Manual Way You don’t need a tool to circumvent the 32 GB partition limit, you can  manu

How to Disable Windows 10 Update

Windows 10 Forces Me to Update "Every time I try to shut down my computer, I was forced to update my Windows 10. But I really don't want to update my operating system because the automatic update might take up the system and network resources. Is there anybody can help me solve this problem and disable Windows 10 update? Thanks in advance." Whenever you are faced with Windows 10's automatic update notification like: Install updates automatically  Download Updates but choose when to install them Check for updates but let me choose whether to download and install them What would you do? Here, we have the following solutions. All solutions to disable Windows 10 update: Solution 1. Disable Windows Update Service Solution 2. Change the Setting of the Group Policy Editor Solution 3. Meter Your Network Connection Solution 4. Change the Way of Windows 10 Updates Using Registry Tips Before proceeding with the four solutions to fully stop Windows 10 upd