Windows PE error, using Windows 8 ADK

Windows PE error, using Windows 8 ADK
I am trying to build a PE iso, ran into this problem.

Running:
Windows 8 Professional x64
Windows Assessment and Deployment Kit (ADK) for Windows 8

Command Prompt Output:

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment>copype Creates working directories for WinPE image customization and media creation. copype { amd64 | x86 | arm } <workingDirectory> amd64 Copies amd64 boot files and WIM to <workingDirectory>\media. x86 Copies x86 boot files and WIM to <workingDirectory>\media. arm Copies arm boot files and WIM to <workingDirectory>\media. Note: ARM content may not be present in this ADK. workingDirectory Creates the working directory at the specified location. Example: copype amd64 C:\WinPE_amd64

When running command: copype amd64 S:\WindowsPE I receive:

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

March 30th, 2013 12:48pm

Yes, running an elevated cmd.
Free Windows Admin Tool Kit Click here and download it now
March 30th, 2013 10:42pm

No, I am using Windows Assessment and Deployment Kit (ADK).

WAIK applies to Windows 7 / Server 2008, ADK is the updated version of WAIK

April 1st, 2013 2:40pm

You need to edit and change the copype.cmd to the following:

------------------------   START   --------------------------

@echo off
setlocal

set TEMPL=media
set FWFILES=fwfiles

rem
rem Input validation
rem
if /i "%1"=="/?" goto usage
if /i "%1"=="" goto usage
if /i "%~2"=="" goto usage
if /i not "%3"=="" goto usage

rem
rem Set environment variables for use in the script
rem
set WINPE_ARCH=%1
set SOURCE=C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\%WINPE_ARCH%
set FWFILESROOT=C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\%WINPE_ARCH%\Oscdimg
set DEST=%~2
set WIMSOURCEPATH=%SOURCE%\en-us\winpe.wim

rem
rem Validate input architecture
rem
rem If the source directory as per input architecture does not exist,
rem it means the architecture is not present
rem
if not exist "%SOURCE%" (
  echo ERROR: The following processor architecture was not found: %WINPE_ARCH%.
  exit /b 1
)

rem
rem Validate the boot app directory location
rem
rem If the input architecture is validated, this directory must exist
rem This check is only to be extra careful
rem
if not exist "%FWFILESROOT%" (
  echo ERROR: The following path for firmware files was not found: "%FWFILESROOT%".
  exit /b 1
)

rem
rem Make sure the appropriate winpe.wim is present
rem
if not exist "%WIMSOURCEPATH%" (
  echo ERROR: WinPE WIM file does not exist: "%WIMSOURCEPATH%".
  exit /b 1
)

rem
rem Make sure the destination directory does not exist
rem
if exist "%DEST%" (
  echo ERROR: Destination directory exists: %2.
  exit /b 1
)

mkdir "%DEST%"
if errorlevel 1 (
  echo ERROR: Unable to create destination: %2.
  exit /b 1
)

echo.
echo ===================================================
echo Creating Windows PE customization working directory
echo.
echo     %DEST%
echo ===================================================
echo.

mkdir "%DEST%\%TEMPL%"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\mount"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\%FWFILES%"
if errorlevel 1 goto :FAIL

rem
rem Copy the boot files and WinPE WIM to the destination location
rem
xcopy /cherky "%SOURCE%\Media" "%DEST%\%TEMPL%\"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\%TEMPL%\sources"
if errorlevel 1 goto :FAIL
copy "%WIMSOURCEPATH%" "%DEST%\%TEMPL%\sources\boot.wim"
if errorlevel 1 goto :FAIL

rem
rem Copy the boot apps to enable ISO boot
rem
rem  UEFI boot uses efisys.bin
rem  BIOS boot uses etfsboot.com
rem
copy "%FWFILESROOT%\efisys.bin" "%DEST%\%FWFILES%"
if errorlevel 1 goto :FAIL
if exist "%FWFILESROOT%\etfsboot.com" (
  copy "%FWFILESROOT%\etfsboot.com" "%DEST%\%FWFILES%"
  if errorlevel 1 goto :FAIL
)

endlocal
echo.
echo Success
echo.

cd /d "%~2"

goto :EOF

:usage
echo Creates working directories for WinPE image customization and media creation.
echo.
echo copype { amd64 ^| x86 ^| arm } ^<workingDirectory^>
echo.
echo  amd64             Copies amd64 boot files and WIM to ^<workingDirectory^>\media.
echo  x86               Copies x86 boot files and WIM to ^<workingDirectory^>\media.
echo  arm               Copies arm boot files and WIM to ^<workingDirectory^>\media.
echo                    Note: ARM content may not be present in this ADK.
echo  workingDirectory  Creates the working directory at the specified location.
echo.
echo Example: copype amd64 C:\WinPE_amd64
goto :EOF

:FAIL
echo ERROR: Failed to create working directory.

------------------------ END --------------------------

Then for the running the script MakeWinPEMedia.cmd you need to copy all the files from:

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg

Into

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment

------

If your making a 32 bit PE you need to copy all the files from:

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\x86\Oscdimg

Into

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment

------

Clearly someone at Microsoft is retarded :) I discovered your post trying to figure out how to do this myself. After not finding an answer I figured it out on my own.




Free Windows Admin Tool Kit Click here and download it now
April 1st, 2013 10:29pm

You need to edit and change the copype.cmd to the following:

------------------------   START   --------------------------

@echo off
setlocal

set TEMPL=media
set FWFILES=fwfiles

rem
rem Input validation
rem
if /i "%1"=="/?" goto usage
if /i "%1"=="" goto usage
if /i "%~2"=="" goto usage
if /i not "%3"=="" goto usage

rem
rem Set environment variables for use in the script
rem
set WINPE_ARCH=%1
set SOURCE=C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\%WINPE_ARCH%
set FWFILESROOT=C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\%WINPE_ARCH%\Oscdimg
set DEST=%~2
set WIMSOURCEPATH=%SOURCE%\en-us\winpe.wim

rem
rem Validate input architecture
rem
rem If the source directory as per input architecture does not exist,
rem it means the architecture is not present
rem
if not exist "%SOURCE%" (
  echo ERROR: The following processor architecture was not found: %WINPE_ARCH%.
  exit /b 1
)

rem
rem Validate the boot app directory location
rem
rem If the input architecture is validated, this directory must exist
rem This check is only to be extra careful
rem
if not exist "%FWFILESROOT%" (
  echo ERROR: The following path for firmware files was not found: "%FWFILESROOT%".
  exit /b 1
)

rem
rem Make sure the appropriate winpe.wim is present
rem
if not exist "%WIMSOURCEPATH%" (
  echo ERROR: WinPE WIM file does not exist: "%WIMSOURCEPATH%".
  exit /b 1
)

rem
rem Make sure the destination directory does not exist
rem
if exist "%DEST%" (
  echo ERROR: Destination directory exists: %2.
  exit /b 1
)

mkdir "%DEST%"
if errorlevel 1 (
  echo ERROR: Unable to create destination: %2.
  exit /b 1
)

echo.
echo ===================================================
echo Creating Windows PE customization working directory
echo.
echo     %DEST%
echo ===================================================
echo.

mkdir "%DEST%\%TEMPL%"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\mount"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\%FWFILES%"
if errorlevel 1 goto :FAIL

rem
rem Copy the boot files and WinPE WIM to the destination location
rem
xcopy /cherky "%SOURCE%\Media" "%DEST%\%TEMPL%\"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\%TEMPL%\sources"
if errorlevel 1 goto :FAIL
copy "%WIMSOURCEPATH%" "%DEST%\%TEMPL%\sources\boot.wim"
if errorlevel 1 goto :FAIL

rem
rem Copy the boot apps to enable ISO boot
rem
rem  UEFI boot uses efisys.bin
rem  BIOS boot uses etfsboot.com
rem
copy "%FWFILESROOT%\efisys.bin" "%DEST%\%FWFILES%"
if errorlevel 1 goto :FAIL
if exist "%FWFILESROOT%\etfsboot.com" (
  copy "%FWFILESROOT%\etfsboot.com" "%DEST%\%FWFILES%"
  if errorlevel 1 goto :FAIL
)

endlocal
echo.
echo Success
echo.

cd /d "%~2"

goto :EOF

:usage
echo Creates working directories for WinPE image customization and media creation.
echo.
echo copype { amd64 ^| x86 ^| arm } ^<workingDirectory^>
echo.
echo  amd64             Copies amd64 boot files and WIM to ^<workingDirectory^>\media.
echo  x86               Copies x86 boot files and WIM to ^<workingDirectory^>\media.
echo  arm               Copies arm boot files and WIM to ^<workingDirectory^>\media.
echo                    Note: ARM content may not be present in this ADK.
echo  workingDirectory  Creates the working directory at the specified location.
echo.
echo Example: copype amd64 C:\WinPE_amd64
goto :EOF

:FAIL
echo ERROR: Failed to create working directory.

------------------------ END --------------------------

Then for the running the script MakeWinPEMedia.cmd you need to copy all the files from:

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg

Into

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment

------

If your making a 32 bit PE you need to copy all the files from:

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\x86\Oscdimg

Into

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment

------

Clearly someone at Microsoft is retarded :) I discovered your post trying to figure out how to do this myself. After not finding an answer I figured it out on my own.




April 1st, 2013 10:29pm

You need to edit and change the copype.cmd to the following:

------------------------   START   --------------------------

@echo off
setlocal

set TEMPL=media
set FWFILES=fwfiles

rem
rem Input validation
rem
if /i "%1"=="/?" goto usage
if /i "%1"=="" goto usage
if /i "%~2"=="" goto usage
if /i not "%3"=="" goto usage

rem
rem Set environment variables for use in the script
rem
set WINPE_ARCH=%1
set SOURCE=C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\%WINPE_ARCH%
set FWFILESROOT=C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\%WINPE_ARCH%\Oscdimg
set DEST=%~2
set WIMSOURCEPATH=%SOURCE%\en-us\winpe.wim

rem
rem Validate input architecture
rem
rem If the source directory as per input architecture does not exist,
rem it means the architecture is not present
rem
if not exist "%SOURCE%" (
  echo ERROR: The following processor architecture was not found: %WINPE_ARCH%.
  exit /b 1
)

rem
rem Validate the boot app directory location
rem
rem If the input architecture is validated, this directory must exist
rem This check is only to be extra careful
rem
if not exist "%FWFILESROOT%" (
  echo ERROR: The following path for firmware files was not found: "%FWFILESROOT%".
  exit /b 1
)

rem
rem Make sure the appropriate winpe.wim is present
rem
if not exist "%WIMSOURCEPATH%" (
  echo ERROR: WinPE WIM file does not exist: "%WIMSOURCEPATH%".
  exit /b 1
)

rem
rem Make sure the destination directory does not exist
rem
if exist "%DEST%" (
  echo ERROR: Destination directory exists: %2.
  exit /b 1
)

mkdir "%DEST%"
if errorlevel 1 (
  echo ERROR: Unable to create destination: %2.
  exit /b 1
)

echo.
echo ===================================================
echo Creating Windows PE customization working directory
echo.
echo     %DEST%
echo ===================================================
echo.

mkdir "%DEST%\%TEMPL%"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\mount"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\%FWFILES%"
if errorlevel 1 goto :FAIL

rem
rem Copy the boot files and WinPE WIM to the destination location
rem
xcopy /cherky "%SOURCE%\Media" "%DEST%\%TEMPL%\"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\%TEMPL%\sources"
if errorlevel 1 goto :FAIL
copy "%WIMSOURCEPATH%" "%DEST%\%TEMPL%\sources\boot.wim"
if errorlevel 1 goto :FAIL

rem
rem Copy the boot apps to enable ISO boot
rem
rem  UEFI boot uses efisys.bin
rem  BIOS boot uses etfsboot.com
rem
copy "%FWFILESROOT%\efisys.bin" "%DEST%\%FWFILES%"
if errorlevel 1 goto :FAIL
if exist "%FWFILESROOT%\etfsboot.com" (
  copy "%FWFILESROOT%\etfsboot.com" "%DEST%\%FWFILES%"
  if errorlevel 1 goto :FAIL
)

endlocal
echo.
echo Success
echo.

cd /d "%~2"

goto :EOF

:usage
echo Creates working directories for WinPE image customization and media creation.
echo.
echo copype { amd64 ^| x86 ^| arm } ^<workingDirectory^>
echo.
echo  amd64             Copies amd64 boot files and WIM to ^<workingDirectory^>\media.
echo  x86               Copies x86 boot files and WIM to ^<workingDirectory^>\media.
echo  arm               Copies arm boot files and WIM to ^<workingDirectory^>\media.
echo                    Note: ARM content may not be present in this ADK.
echo  workingDirectory  Creates the working directory at the specified location.
echo.
echo Example: copype amd64 C:\WinPE_amd64
goto :EOF

:FAIL
echo ERROR: Failed to create working directory.

------------------------ END --------------------------

Then for the running the script MakeWinPEMedia.cmd you need to copy all the files from:

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg

Into

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment

------

If your making a 32 bit PE you need to copy all the files from:

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\x86\Oscdimg

Into

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment

------

Clearly someone at Microsoft is retarded :) I discovered your post trying to figure out how to do this myself. After not finding an answer I figured it out on my own.




Free Windows Admin Tool Kit Click here and download it now
April 1st, 2013 10:29pm

You need to edit and change the copype.cmd to the following:

------------------------   START   --------------------------

@echo off
setlocal

set TEMPL=media
set FWFILES=fwfiles

rem
rem Input validation
rem
if /i "%1"=="/?" goto usage
if /i "%1"=="" goto usage
if /i "%~2"=="" goto usage
if /i not "%3"=="" goto usage

rem
rem Set environment variables for use in the script
rem
set WINPE_ARCH=%1
set SOURCE=C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\%WINPE_ARCH%
set FWFILESROOT=C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\%WINPE_ARCH%\Oscdimg
set DEST=%~2
set WIMSOURCEPATH=%SOURCE%\en-us\winpe.wim

rem
rem Validate input architecture
rem
rem If the source directory as per input architecture does not exist,
rem it means the architecture is not present
rem
if not exist "%SOURCE%" (
  echo ERROR: The following processor architecture was not found: %WINPE_ARCH%.
  exit /b 1
)

rem
rem Validate the boot app directory location
rem
rem If the input architecture is validated, this directory must exist
rem This check is only to be extra careful
rem
if not exist "%FWFILESROOT%" (
  echo ERROR: The following path for firmware files was not found: "%FWFILESROOT%".
  exit /b 1
)

rem
rem Make sure the appropriate winpe.wim is present
rem
if not exist "%WIMSOURCEPATH%" (
  echo ERROR: WinPE WIM file does not exist: "%WIMSOURCEPATH%".
  exit /b 1
)

rem
rem Make sure the destination directory does not exist
rem
if exist "%DEST%" (
  echo ERROR: Destination directory exists: %2.
  exit /b 1
)

mkdir "%DEST%"
if errorlevel 1 (
  echo ERROR: Unable to create destination: %2.
  exit /b 1
)

echo.
echo ===================================================
echo Creating Windows PE customization working directory
echo.
echo     %DEST%
echo ===================================================
echo.

mkdir "%DEST%\%TEMPL%"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\mount"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\%FWFILES%"
if errorlevel 1 goto :FAIL

rem
rem Copy the boot files and WinPE WIM to the destination location
rem
xcopy /cherky "%SOURCE%\Media" "%DEST%\%TEMPL%\"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\%TEMPL%\sources"
if errorlevel 1 goto :FAIL
copy "%WIMSOURCEPATH%" "%DEST%\%TEMPL%\sources\boot.wim"
if errorlevel 1 goto :FAIL

rem
rem Copy the boot apps to enable ISO boot
rem
rem  UEFI boot uses efisys.bin
rem  BIOS boot uses etfsboot.com
rem
copy "%FWFILESROOT%\efisys.bin" "%DEST%\%FWFILES%"
if errorlevel 1 goto :FAIL
if exist "%FWFILESROOT%\etfsboot.com" (
  copy "%FWFILESROOT%\etfsboot.com" "%DEST%\%FWFILES%"
  if errorlevel 1 goto :FAIL
)

endlocal
echo.
echo Success
echo.

cd /d "%~2"

goto :EOF

:usage
echo Creates working directories for WinPE image customization and media creation.
echo.
echo copype { amd64 ^| x86 ^| arm } ^<workingDirectory^>
echo.
echo  amd64             Copies amd64 boot files and WIM to ^<workingDirectory^>\media.
echo  x86               Copies x86 boot files and WIM to ^<workingDirectory^>\media.
echo  arm               Copies arm boot files and WIM to ^<workingDirectory^>\media.
echo                    Note: ARM content may not be present in this ADK.
echo  workingDirectory  Creates the working directory at the specified location.
echo.
echo Example: copype amd64 C:\WinPE_amd64
goto :EOF

:FAIL
echo ERROR: Failed to create working directory.

------------------------ END --------------------------

Then for the running the script MakeWinPEMedia.cmd you need to copy all the files from:

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg

Into

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment

------

If your making a 32 bit PE you need to copy all the files from:

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\x86\Oscdimg

Into

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment

------

Clearly someone at Microsoft is retarded :) I discovered your post trying to figure out how to do this myself. After not finding an answer I figured it out on my own.




April 1st, 2013 10:29pm

You need to edit and change the copype.cmd to the following:

------------------------   START   --------------------------

@echo off
setlocal

set TEMPL=media
set FWFILES=fwfiles

rem
rem Input validation
rem
if /i "%1"=="/?" goto usage
if /i "%1"=="" goto usage
if /i "%~2"=="" goto usage
if /i not "%3"=="" goto usage

rem
rem Set environment variables for use in the script
rem
set WINPE_ARCH=%1
set SOURCE=C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\%WINPE_ARCH%
set FWFILESROOT=C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\%WINPE_ARCH%\Oscdimg
set DEST=%~2
set WIMSOURCEPATH=%SOURCE%\en-us\winpe.wim

rem
rem Validate input architecture
rem
rem If the source directory as per input architecture does not exist,
rem it means the architecture is not present
rem
if not exist "%SOURCE%" (
  echo ERROR: The following processor architecture was not found: %WINPE_ARCH%.
  exit /b 1
)

rem
rem Validate the boot app directory location
rem
rem If the input architecture is validated, this directory must exist
rem This check is only to be extra careful
rem
if not exist "%FWFILESROOT%" (
  echo ERROR: The following path for firmware files was not found: "%FWFILESROOT%".
  exit /b 1
)

rem
rem Make sure the appropriate winpe.wim is present
rem
if not exist "%WIMSOURCEPATH%" (
  echo ERROR: WinPE WIM file does not exist: "%WIMSOURCEPATH%".
  exit /b 1
)

rem
rem Make sure the destination directory does not exist
rem
if exist "%DEST%" (
  echo ERROR: Destination directory exists: %2.
  exit /b 1
)

mkdir "%DEST%"
if errorlevel 1 (
  echo ERROR: Unable to create destination: %2.
  exit /b 1
)

echo.
echo ===================================================
echo Creating Windows PE customization working directory
echo.
echo     %DEST%
echo ===================================================
echo.

mkdir "%DEST%\%TEMPL%"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\mount"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\%FWFILES%"
if errorlevel 1 goto :FAIL

rem
rem Copy the boot files and WinPE WIM to the destination location
rem
xcopy /cherky "%SOURCE%\Media" "%DEST%\%TEMPL%\"
if errorlevel 1 goto :FAIL
mkdir "%DEST%\%TEMPL%\sources"
if errorlevel 1 goto :FAIL
copy "%WIMSOURCEPATH%" "%DEST%\%TEMPL%\sources\boot.wim"
if errorlevel 1 goto :FAIL

rem
rem Copy the boot apps to enable ISO boot
rem
rem  UEFI boot uses efisys.bin
rem  BIOS boot uses etfsboot.com
rem
copy "%FWFILESROOT%\efisys.bin" "%DEST%\%FWFILES%"
if errorlevel 1 goto :FAIL
if exist "%FWFILESROOT%\etfsboot.com" (
  copy "%FWFILESROOT%\etfsboot.com" "%DEST%\%FWFILES%"
  if errorlevel 1 goto :FAIL
)

endlocal
echo.
echo Success
echo.

cd /d "%~2"

goto :EOF

:usage
echo Creates working directories for WinPE image customization and media creation.
echo.
echo copype { amd64 ^| x86 ^| arm } ^<workingDirectory^>
echo.
echo  amd64             Copies amd64 boot files and WIM to ^<workingDirectory^>\media.
echo  x86               Copies x86 boot files and WIM to ^<workingDirectory^>\media.
echo  arm               Copies arm boot files and WIM to ^<workingDirectory^>\media.
echo                    Note: ARM content may not be present in this ADK.
echo  workingDirectory  Creates the working directory at the specified location.
echo.
echo Example: copype amd64 C:\WinPE_amd64
goto :EOF

:FAIL
echo ERROR: Failed to create working directory.

------------------------ END --------------------------

Then for the running the script MakeWinPEMedia.cmd you need to copy all the files from:

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg

Into

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment

------

If your making a 32 bit PE you need to copy all the files from:

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\x86\Oscdimg

Into

C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment

------

Clearly someone at Microsoft is retarded :) I discovered your post trying to figure out how to do this myself. After not finding an answer I figured it out on my own.




Free Windows Admin Tool Kit Click here and download it now
April 1st, 2013 10:29pm

Outstaning find.  Thanks wjsorensen.


Anybody that experiences this issue, please follow the instructions posted here, as they will fix the issue.  *Side note, that if you install the ADK into a different directory, other than default - be sure to update these two lines in the cmd:

set SOURCE=C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\%WINPE_ARCH%
set FWFILESROOT=C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\%WINPE_ARCH%\Oscdimg

Update them to wherever ADK has been installed (if not default).  - And please share the love for  wjsorensen by "upvoting" him if the same solution worked for you.

May 26th, 2013 6:13am

please mind that windows 8.1 adk has a different path (!) therefore i suggest you correct lines 19+20 and use relative folder structures using batch variables

set SOURCE=%~dp0\%WINPE_ARCH%
set FWFILESROOT=%~dp0\..\Deployment Tools\%WINPE_ARCH%\Oscdimg

Mind: u can only edit copype.cmd with administrator privileges


  • Edited by Gizmo0001 Tuesday, November 05, 2013 10:14 PM
Free Windows Admin Tool Kit Click here and download it now
November 6th, 2013 1:07am

please mind that windows 8.1 adk has a different path (!) therefore i suggest you correct lines 19+20 and use relative folder structures using batch variables

set SOURCE=%~dp0\%WINPE_ARCH%
set FWFILESROOT=%~dp0\..\Deployment Tools\%WINPE_ARCH%\Oscdimg

Mind: u can only edit copype.cmd with administrator privileges


  • Edited by Gizmo0001 Tuesday, November 05, 2013 10:14 PM
November 6th, 2013 1:07am

please mind that windows 8.1 adk has a different path (!) therefore i suggest you correct lines 19+20 and use relative folder structures using batch variables

set SOURCE=%~dp0\%WINPE_ARCH%
set FWFILESROOT=%~dp0\..\Deployment Tools\%WINPE_ARCH%\Oscdimg

Mind: u can only edit copype.cmd with administrator privileges


  • Edited by Gizmo0001 Tuesday, November 05, 2013 10:14 PM
Free Windows Admin Tool Kit Click here and download it now
November 6th, 2013 1:07am

please mind that windows 8.1 adk has a different path (!) therefore i suggest you correct lines 19+20 and use relative folder structures using batch variables

set SOURCE=%~dp0\%WINPE_ARCH%
set FWFILESROOT=%~dp0\..\Deployment Tools\%WINPE_ARCH%\Oscdimg

Mind: u can only edit copype.cmd with administrator privileges


  • Edited by Gizmo0001 Tuesday, November 05, 2013 10:14 PM
November 6th, 2013 1:07am

please mind that windows 8.1 adk has a different path (!) therefore i suggest you correct lines 19+20 and use relative folder structures using batch variables

set SOURCE=%~dp0\%WINPE_ARCH%
set FWFILESROOT=%~dp0\..\Deployment Tools\%WINPE_ARCH%\Oscdimg

Mind: u can only edit copype.cmd with administrator privileges


  • Edited by Gizmo0001 Tuesday, November 05, 2013 10:14 PM
Free Windows Admin Tool Kit Click here and download it now
November 6th, 2013 1:07am

Hi Maybe a bit late but this error you get because you are missing the variables.

If you start the created link by the installation called "Deployment and Imaging Tools Environment"

the variables are there and you are ready to go. No hustle to change scripts and stuff.

Kind regards

Bauke Plugge

December 30th, 2013 2:50pm

if using windows 8.1, then "8.0" in the above should be changed to "8.1"; as that is the default install directory for ADK
Free Windows Admin Tool Kit Click here and download it now
March 26th, 2014 3:30pm

Rewriting the entire script is overkill.

The problem is that two environment variables have not been declared - WinPERoot and OSCDImgRoot. Declare them as follows:

  • setx.exe WinPERoot "C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment" /m
  • setx.exe OSCDImgRoot "C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg" /m

A few points:

  • The /m at the end of the command sets the environment variable for the system instead of for the session. Remove this to have be available for just this session;
  • You notice that the OSCDImgRoot specifies \amd64\Oscdimg - even if you are running x86 you should just leave this. If you notice the variable is set using it (FWFILESROOT=%OSCDImgRoot%\..\..\%WINPE_ARCH%\Oscdimg) steps down two directories before being set so you will still get to your x86 directory regardless.

The reason I suggest not changing the script is that it may change in a future version.

Once the above change was made the copype.cmd worked first time.

Alternatively to all of this don't run the script from a generic command shell. Run "Deployment and Imaging Tools Environment" from Start->Windows Kits - this runs a batch file which sets many environment variables for you.

Hope this helps somebody.





  • Proposed as answer by Pauby 22 hours 51 minutes ago
  • Edited by Pauby 22 hours 48 minutes ago
January 11th, 2015 8:06am

Rewriting the entire script is overkill.

The problem is that two environment variables have not been declared - WinPERoot and OSCDImgRoot. Declare them as follows:

  • setx.exe WinPERoot "C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment" /m
  • setx.exe OSCDImgRoot "C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg" /m

A few points:

  • The /m at the end of the command sets the environment variable for the system instead of for the session. Remove this to have be available for just this session;
  • You notice that the OSCDImgRoot specifies \amd64\Oscdimg - even if you are running x86 you should just leave this. If you notice the variable is set using it (FWFILESROOT=%OSCDImgRoot%\..\..\%WINPE_ARCH%\Oscdimg) steps down two directories before being set so you will still get to your x86 directory regardless.

The reason I suggest not changing the script is that it may change in a future version.

Once the above change was made the copype.cmd worked first time.

Alternatively to all of this don't run the script from a generic command shell. Run "Deployment and Imaging Tools Environment" from Start->Windows Kits - this runs a batch file which sets many environment variables for you.

Hope this helps somebody.





  • Proposed as answer by Pauby Sunday, January 11, 2015 1:00 PM
  • Edited by Pauby Sunday, January 11, 2015 1:03 PM
Free Windows Admin Tool Kit Click here and download it now
January 11th, 2015 3:59pm

I had the same issue. I was being a n00b and not using Deployment Tools Command Prompt.

lol, I had the same issue as well and you were right on the money!

I missed  the step in my instructions by assuming they were using the standard command prompt. Using the Deployment and Imaging Tools Environment prompt does fix this issue.

January 13th, 2015 6:34pm

You sir are the man.

For those of you who would like to know what the %~dp0 command line does read it below.

https://stackoverflow.com/questions/5034076/what-does-dp0-mean-and-how-does-it-work

Free Windows Admin Tool Kit Click here and download it now
May 14th, 2015 1:04pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics