查找copype所在路径
dir copype* /a /s
该版本中copype命令实际所在位置如下
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment
运行copype时出现错误"ERROR: The following processor architecture was not found: arm64"
解决方法:找到copype.cmd脚本,打开并加入下面两个环境变量
set WinPERoot=C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment
set OSCDImgRoot=C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools
运行copype时出现错误ERROR: The following path for firmware files was not found: "\..\..\arm64\Oscdimg"
解决方法:该错误表示Oscdimg的路径不对。找到copype.cmd脚本,打开并修改环境变量FWFILESROOT
原内容:set FWFILESROOT=%OSCDImgRoot%\..\..\%WINPE_ARCH%\Oscdimg
修改为:set FWFILESROOT=%OSCDImgRoot%\%WINPE_ARCH%\Oscdimg
运行MakeWinPEMedia时出现错误"ERROR: Failed to format "E:"; DiskPart errorlevel -2147212243."
解决方法:该错误表示U盘分区的大小超过了FAT32的上限32GB。将U盘分出一个小于32GB的分区,再次运行该命令即可。