After installing the Windows 10 1809 ADK (Automated Deployment Kit) and attempting to import a New Boot Image in the OSIM IPS (Image Prepare System), the following error is encountered:
Command execution failed with exit code: 39 [OSG001106]
Started creating Windows PE image in folder: C:\Program Files (x86)\CA\DSM\Server\SDBS\var\ManagedPC\bttmp\winpe10x64 ...
C:\Program Files (x86)\Windows Kits\10
"Error during preparing the $1 image." WINPE10x64
Invalid Windows ADK directory "C:\Program Files (x86)\Windows Kits\10". Check whether Windows ADK is installed.
Error during preparing the WINPE10x64 image.
CreateBTImages returned error 39:
Failed to create the WinPE boot image in directory: C:\Program Files (x86)\CA\DSM\Server\SDBS\var\ManagedPC\bttmp\winpe10x64
Inside the TRC_USD_CREATEBTIMAGES_0.log, the following trace is observed:
ERROR | copype failed with -1 , copype10x64.cmd "C:\Program Files (x86)\Windows Kits\10" "C:\Program Files (x86)\CA\DSM\Server\SDBS\var\ManagedPC\bttmp\winpe10x64" "" ERROR | CreateBTImages returned error 39: ERROR | Failed to create the WinPE boot image in directory: C:\Program Files (x86)\CA\DSM\Server\SDBS\var\ManagedPC\bttmp\winpe10x64
Ensure the Windows PE add-on for the ADK is installed:
https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install
Also ensure the WINPE10x64 image type is selected from the available choices...