Problem:
I am trying to create a WinPE bootable flash drive for WinPE 4.0 provided by Windows Assessment and Deployment Kit 8.1
to prepare WinPE Source directory I navigate to “C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment” folder (default installation for ADK) and run
copype amd64 d:\WinPE_amd64
The installation fails with error:
ERROR: The following processor architecture was not found: amd64.
Resolution:
after digging copype.cmd I found that some variables are missing. I guess they were set up with older version of WAIK, when we had a chance to start “WAIK” command prompt; but now we (at least I) do not have this customized command prompt in Windows 8/8.1 and the variables are not set.
So, I added the variables manually and change a line in the batch file (copype.cmd)
Here are variables I added (there are two variables, each on its own line, depending on your installation path – mine are default):
set WinPERoot=C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment
set OSCDImgRoot=C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools
and I also changed FWFILESROOT line to:
set FWFILESROOT=%OSCDImgRoot%\%WINPE_ARCH%\Oscdimg (I added a variable and removed “\..\..”)
At the end the changed part of copype.cmd looks like (changes are in red):
rem
rem Set environment variables for use in the script
rem
set WINPE_ARCH=%1
set WinPERoot=C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment
set OSCDImgRoot=C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools
set SOURCE=%WinPERoot%\%WINPE_ARCH%
set FWFILESROOT=%OSCDImgRoot%\%WINPE_ARCH%\Oscdimg
set DEST=%~2
set WIMSOURCEPATH=%SOURCE%\en-us\winpe.wim
After that I saved the changed copype.cmd and reran it – It generated source WinPE folder structure for me successfully.