Error 39 OSG001106 during creation of OSIM Boot Image with recent Windows ADK version
search cancel

Error 39 OSG001106 during creation of OSIM Boot Image with recent Windows ADK version

book

Article ID: 394006

calendar_today

Updated On:

Products

CA Client Automation CA Client Automation - IT Client Manager

Issue/Introduction

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

Environment

Client Automation - All Versions
Windows ADK 10.1.26100.2454

Cause

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

Resolution

  1. Edit file <Win ADK Path>\Windows Preinstallation Environment\copype.cmd
    (Ex : C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\copype.cmd)
    with text editor like notepad.


  2. At the bottom of the script add quotes around %DEST%.
    Example see below line in bold :

    if %EXITCODE% EQU 0 (
    echo.
    echo ===================================================
    echo Successfully staged "%DEST%"
    echo ===================================================
    echo.
    )
    endlocal & exit /b %EXITCODE%
  3. Save the file and try again to create the Boot Image.