During creation of Boot Image, following error appears :
Command execution failed with exit code: 39 [OSG001106]
In TRC_USD_CREATEBTIMAGES_0.log there are following errors :
OSIM_IPS |CreateBTImages |CreateBTImages |000000|DETAIL | create a winpe image winpe1064
OSIM_IPS |CreateBTImages |CreateBTImages |000000|DETAIL | create WinPE image WINPE10x64 , C:\Program Files (x86)\CA\DSM\Server\SDBS\var\ManagedPC\bttmp\winpe10x64 , C:\Program Files (x86)\Windows Kits\10 , ,
OSIM_IPS |CreateBTImages |CreateBTImages |000000|DETAIL | Calling WinPE image creation script: copype10x64.cmd "C:\Program Files (x86)\Windows Kits\10" "C:\Program Files (x86)\CA\DSM\Server\SDBS\var\ManagedPC\bttmp\winpe10x64" ""
OSIM_IPS |CreateBTImages |CreateBTImages |000000|ERROR | copype failed with 255 , copype10x64.cmd "C:\Program Files (x86)\Windows Kits\10" "C:\Program Files (x86)\CA\DSM\Server\SDBS\var\ManagedPC\bttmp\winpe10x64" ""
OSIM_IPS |CreateBTImages |CreateBTImages |000000|ERROR | CreateBTImages returned error 39:
OSIM_IPS |CreateBTImages |CreateBTImages |000000|ERROR | Failed to create the WinPE boot image in directory: C:\Program Files (x86)\CA\DSM\Server\SDBS\var\ManagedPC\bttmp\winpe10x64
Client Automation - All Versions
Windows ADK 10.1.26100.2454
The error occurs during execution of copype.cmd (ex: C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\copype.cmd)
The script copype.cmd is part of the WinPE Add-ons of Microsoft ADK. This problem started with a particular version of ADK and previous versions had no issue (ex: 10.1.26100.1)
Problem occurs if there is a ) character (closing parenthesis) in Client Automation installation path. Example : C:\Program Files (x86)\CA\DSM
If Client Automation is installed in a path which does not contain ) character there is not this problem. Ex: C:\CA\DSM
if %EXITCODE% EQU 0 (
echo.
echo ===================================================
echo Successfully staged "%DEST%"
echo ===================================================
echo.
)
endlocal & exit /b %EXITCODE%