建立可開機的 WinPE 媒體Create bootable WinPE media

Windows 評定及部署套件 (ADK) 包含CopyPE MakeWinPEMedia 命令列公用程式。The Windows Assessment and Deployment Kit (ADK) includes the CopyPE and MakeWinPEMedia command line utilities. 從部署和影像處理工具環境中,執行時CopyPE建立 WinPE 檔案的工作集, MakeWinPEMedia可用來建立可開機的 WinPE 媒體。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可以建立可開機的 WinPE USB 磁碟機、 虛擬硬碟或可讓您啟動 VHD 或燒錄到 DVD 或 CD 的 Iso。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.

CopyPEMakeWinPEMedia當您選擇安裝部署工具Windows 預先安裝環境安裝 ADKCopyPE and MakeWinPEMedia are installed when you choose the Deployment tools and Windows Preinstallation Environment options when installing the ADK. 如果您使用 ADK for Windows 10 版本 1809,Windows PE 是個別的附加元件,您下載並安裝 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. 您可以從下載中心下載 WinPE 附加元件You can download the WinPE add-on from the Download Center.

步驟 1:建立工作檔案Step 1: Create working files

無論您將何種媒體來建立,進行第一件事是建立 WinPE 檔案在您的技術人員電腦上的工作集。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. 開始部署與影像處理工具環境身為系統管理員。Start the Deployment and Imaging Tools Environment as an administrator.

  2. 執行copype建立 Windows PE 檔中的工作複本。Run copype to create a working copy of the Windows PE files. 如需 copype 的詳細資訊,請參閱Copype 命令列選項For more information about copype, see Copype command line options.

    copype amd64 C:\WinPE_amd64
    

步驟 2:自訂 WinPE (通常不需要)Step 2: Customize WinPE (Usually not needed)

請注意,當您將更多套件新增至 WinPE 時,它會減緩 WinPE 效能和開機時間。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. 如果您打算擷取 FFU 結尾的實驗室,套用KB4048955至 WinPE 映像。If you're going to be capturing an FFU at the end of the lab, apply KB4048955 to your WinPE image. 若要進一步了解,請參閱:WinPE: 裝載並自訂To learn more, see: WinPE: mount and customize.

  • 新增視訊或網路驅動程式Add a video or network driver. (WinPE 包含泛型的影片和網路驅動程式,但在某些情況下,以顯示螢幕或連線到網路需要額外的驅動程式。)。(WinPE includes generic video and network drivers, but in some cases, additional drivers are needed to show the screen or connect to the network.). 若要進一步了解,請參閱WinPE:將驅動程式新增To learn more, see WinPE: Add drivers.

  • 新增 PowerShell 指令碼支援Add PowerShell scripting support. 若要進一步了解,請參閱WinPE:將 Windows PowerShell 支援新增至 Windows PETo learn more, see WinPE: Adding Windows PowerShell support to Windows PE. 在這個實驗室中不包含 PowerShell 指令碼。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. 請參閱WinPE:掛接及自訂:高效能See WinPE: Mount and Customize: High Performance.

  • 最佳化 WinPE:建議使用有限的 RAM 與儲存體 (例如,1 GB RAM/16 GB 儲存體) 的裝置。Optimize WinPE: Recommended for devices with limited RAM and storage (for example, 1GB RAM/16GB storage). 您將驅動程式或其他自訂項目新增至 Windows PE 之後,請參閱WinPE:最佳化和縮減映像協助縮短開機時間。After you add drivers or other customizations to Windows PE, see WinPE: Optimize and shrink the image to help reduce the boot time.

步驟 3:建立可開機媒體Step 3: Create bootable media

既然您現在有一組工作檔案,您可以使用MakeWinPEMedia來建立可開機的 WinPE 媒體。Now that you now have a set of working files, you can use MakeWinPEMedia to build bootable WinPE media.

建立可開機的 WinPE USB 磁碟機Create a bootable WinPE USB drive

  1. 將 USB 磁碟機附加至您的技術人員電腦。Attach a USB drive to your technician PC.

  2. 開始部署與影像處理工具環境身為系統管理員。Start the Deployment and Imaging Tools Environment as an administrator.

  3. 選擇性設定您的 USB 金鑰,然後再執行 MakeWinPEMedia 的格式。Optional You can format your USB key prior to running MakeWinPEMedia. MakeWinPEMedia 會將您的 WinPE 磁碟機格式化成 FAT32。MakeWinPEMedia will format your WinPE drive as FAT32. 如果您想要能夠 WinPE USB 磁碟機上儲存大於 4GB 的檔案,您可以建立具有額外的磁碟分割格式化為 NTFS multipartition USB 磁碟機。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. 請參閱建立 multipartition 的 USB 磁碟機如需相關指示。See Create a multipartition USB drive for instructions.

  4. 使用MakeWinPEMedia使用/UFD格式化,並安裝 Windows PE 的 USB 快閃磁碟機,USB 金鑰的磁碟機代號的指定的選項: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:
    

    警告

    此命令會重新格式化磁碟分割。This command reformats the partition.

    請參閱MakeWinPEMedia 命令列選項的所有可用的選項。See MakeWinPEMedia command line options for all available options.

可開機的 WinPE USB 磁碟機已就緒。The bootable WinPE USB drive is ready. 您可以使用它來電腦開機到 WinPEYou can use it to boot a PC into WinPE.

建立 WinPE ISO、 DVD 或 CDCreate a WinPE ISO, DVD, or CD

  1. 使用MakeWinPEMedia/ISO選項來建立包含 Windows PE 檔中的 ISO 檔案: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. 選擇性Burn DVD 或 CD:在 Windows 檔案總管中,ISO 檔案,以滑鼠右鍵按一下,然後選取Burn 光碟映像 > Burn,並遵循提示。Optional Burn a DVD or CD: In Windows Explorer, right-click the ISO file, and select Burn disc image > Burn, and follow the prompts.

建立 WinPE VHD 以搭配 HYPER-VCreate a WinPE VHD to use with Hyper-V

即使在 HYPER-V 中執行 Windows PE 時,您可以建立可開機,請考慮使用 ISO 檔案格式而不是 VHD,若要啟用快速安裝的 virtual PC。Even though you can create a bootable When running Windows PE in Hyper-V, consider using an ISO file format instead of a VHD, to enable quick setup of the virtual PC.

若要安裝 Windows PE 至 VHD:To install Windows PE to a VHD:

  1. 建立虛擬硬碟 (.vhdx):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. 準備使用的磁碟機MakeWinPEMedia: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. 如果 Windows PE 未出現,請嘗試下列解決方法,每次重新啟動電腦:If Windows PE doesn't appear, try the following workarounds, rebooting the PC each time:

    • 若要啟動 PC 支援 UEFI 模式:在韌體開機功能表中,請嘗試以手動方式選取 開機檔案:\EFI\開機\BOOTX64。EFI。To boot a PC that supports UEFI mode: In the firmware boot menus, try manually selecting the boot files: \EFI\BOOT\BOOTX64.EFI.

    • 如果您的電腦需要儲存體或視訊驅動程式開機,請嘗試將這些相同的驅動程式新增至 Windows PE 映像。If your PC requires storage or video drivers to boot, try adding those same drivers to the Windows PE image. 如需詳細資訊,請參閱WinPE:裝載並自訂For more information, see WinPE: Mount and Customize.

  2. 如果電腦未連線到網路位置,請參閱WinPE 網路驅動程式:正在初始化,以及新增驅動程式If the PC doesn't connect to network locations, see WinPE Network Drivers: Initializing and adding drivers.

相關的主題Related topics

WinPE for Windows 10WinPE for Windows 10

WinPE:安裝在硬碟機 (一般開機或非 RAM)WinPE: Install on a Hard Drive (Flat Boot or Non-RAM)

WinPE:掛接和自訂WinPE: Mount and Customize

WinPE:以 UEFI 或舊版 BIOS 模式開機WinPE: Boot in UEFI or legacy BIOS mode

Windows 安裝程式支援的平台和跨平台部署Windows Setup Supported Platforms and Cross-Platform Deployments