In the Windows Event log it seems that it adds to the workgroup, but parameter for the domain is correct.
Release : 14.5 CU4 and above
It executed the old version of canet.exe located in the ca-osim folder.
On Domain Manager,
C:\Program Files (x86)\CA\DSM\Server\SDBS\var\managedpc\images\<imagename>\<imagename>\oeminst\oobecustom.cmd
Modify the oobecustom.cmd script to change the current directory to oeminst before the line canet.exe
command to run the latest version:
cd \oeminst
.\canet.exe JoinDomain "$Domain$" "$DomainUser$" "$DomainPasswd$" >>c:\calogfile.txt