IT Consultant Everyday Notes

Just some problems/solutions storage

WinPE: The following processor architecture was not found: amd64.

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.

Advertisements

6 responses to “WinPE: The following processor architecture was not found: amd64.

  1. Andy January 23, 2014 at 7:29 am

    Hi,
    Thanks for this. Your changes worked for me although the bit in red for the line below I think should be on the removal of the ..\..\ part not the %OSCDImgRoot% bit. Hope that makes sense and appreciate your post!
    cheers

    set FWFILESROOT=%OSCDImgRoot%\%WINPE_ARCH%\Oscdimg

  2. Brian Wengel December 18, 2016 at 9:35 am

    Thanks you Alex! I would have been lost without this 🙂 🙂 🙂

  3. Alex February 13, 2018 at 11:03 am

    I had the same symptom on cmd and powershell. Got it fixed by executing ‘copype.cmd amd64 C:\PathToNonExistingFolder’ from the ‘Deployment and Imaging Tools Environment’ shell. There was no need to alter copype.cmd. But your article pointed me to the right direction. Many thanks! 🙂

  4. Jim May 1, 2018 at 4:16 am

    Unbelievable!!! It’s the year 2018, and these jack-offs at Microsoft still haven’t fixed this. I’m using the Windows 10 WADK. Their own bloody instructions to create working files don’t work without these modifications. Many thanks…

  5. jose November 18, 2018 at 6:41 am

    Awesome… thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: