Skip to main content

Create Bootable WinPE 10 Media

Create bootable WinPE media


The Windows Assessment and Deployment Kit (ADK) includes the CopyPE and MakeWinPEMedia command line utilities. When run from the Deployment and Imaging Tools Environment, CopyPE creates a working set of WinPE files, that MakeWinPEMedia can use to create bootable WinPE media. MakeWinPEMedia can create bootable WinPE USB drives, virtual hard disks, or ISOs that allow you to boot a VHD or burn to a DVD or CD.

CopyPE and MakeWinPEMedia are installed when you choose the Deployment tools and Windows Preinstallation Environment options when installing the ADK. If you're using the ADK for Windows 10, version 1809, Windows PE is a separate add-on that you download and install after you install the ADK. You can download the WinPE add-on from the Download Center.

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.

Start the Deployment and Imaging Tools Environment as an administrator.

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
Add an update. If you're going to be capturing an FFU at the end of the lab, apply KB4048955 to your WinPE image. To learn more, see: WinPE: mount and customize.

Add a video or network driver. (WinPE includes generic video and network drivers, but in some cases, additional drivers are needed to show the screen or connect to the network.). To learn more, see WinPE: Add drivers.

Add PowerShell scripting support. To learn more, see WinPE: Adding Windows PowerShell support to Windows PE. PowerShell scripts are not included in this lab.

Set the power scheme to high-performance. Speeds deployment. Note, our sample deployment scripts already set this scheme automatically. See WinPE: Mount and Customize: High Performance.

Optimize WinPE: Recommended for devices with limited RAM and storage (for example, 1GB RAM/16GB storage). After you add drivers or other customizations to Windows PE, see WinPE: Optimize and shrink the image to help reduce the boot time.

Step 3: Create bootable media
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
Attach a USB drive to your technician PC.

Start the Deployment and Imaging Tools Environment as an administrator.

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.

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.

Comments

Popular posts from this blog

Create a Windows 10 x64 Enterprise USB Installer

Download Window 10 Enterprise 1809 with the Media Creation Tool The October 2018 release of Windows 10 has just dropped and is now availabe to download using the  Media Creation Tool . Using the GUI you can download the consumer ISO which contains the Home, Professional and Education SKUs of Windows 10. If you want to download the Enterprise version of Windows 10, but don’t have access to Microsoft VLSC or Action Pack subscriptions, it is possible to download it using the Media Creation Tool if you know the right command line switches. To download Windows 10 Enterprise 1809 using the Media Creation Tool, log in with a local administrator account (for some reason it isn’t good enough to  run the tool using Run as administrator, you actually do have to be logged in as an administrator) and download the tool. Open a CMD prompt and change directory to the directory you saved the Media Creation Tool in, and enter the following command: MediaCreationTool1809.exe /Eula Accept

Add and Remove Drivers to an offline Windows Image or WinPE

Add and Remove Drivers to an offline Windows Image Link  https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-and-remove-drivers-to-an-offline-windows-image You can use DISM to install or remove driver (.inf) files in an offline Windows or WinPE image. You can either add or remove the drivers directly by using the command prompt, or apply an unattended answer file to a mounted .wim, .ffu, .vhd, or .vhdx file. When you use DISM to install a device driver to an offline image, the device driver is added to the driver store in the offline image. When the image is booted, Plug and Play (PnP) runs and associates the drivers in the store to the corresponding devices on the computer.   Note To add drivers to a Windows 10 image offline, you must use a technician computer running Windows 10, Windows Server 2016, or Windows Preinstallation Environment (WinPE) for Windows 10. Driver signature verification may fail when you add a driver to a Windows 10 image offli

CreatePartitions-UEFI.txt

rem == CreatePartitions-UEFI.txt == rem == These commands are used with DiskPart to rem    create four partitions rem    for a UEFI/GPT-based PC. rem    Adjust the partition sizes to fill the drive rem    as necessary. == select disk 0 clean convert gpt rem == 1. System partition ========================= create partition efi size=100 rem    ** NOTE: For Advanced Format 4Kn drives, rem               change this value to size = 260 ** format quick fs=fat32 label="System" assign letter="S" rem == 2. Microsoft Reserved (MSR) partition ======= create partition msr size=16 rem == 3. Windows partition ======================== rem ==    a. Create the Windows partition ========== create partition primary rem ==    b. Create space for the recovery tools === rem       ** Update this size to match the size of rem          the recovery tools (winre.wim) rem          plus some free space. shrink minimum=500 rem ==    c. Prepare the Windows partition ====