The "Init" method is failing.
Code:
;PARAMETERS $InitType (Required)
; - Integer value
; 1 = ADS_NAME_INITTYPE_DOMAIN
; Initializes a NameTranslate object by setting the domain that the object will bind to.
;
; 2 = ADS_NAME_INITTYPE_SERVER
; Initializes a NameTranslate object by setting the server that the object will bind to.
;
; 3 = ADS_NAME_INITTYPE_GC
; Initializes a NameTranslate object by locating the global catalog that the object will bind to.
;
You are attempting to bind to a domain using the value of @Ldomain. Have you validated that the macro is populated on these two computer? You should log the the value of @Ldomain to insure that you have a valid value. Also, these two computers may be suffering from some form of name resolution failure and can not resolve the domain name. These computers have to be part of the forest where @Ldomain resides.
Have you tried to use a different binding parameter? If not try each value and check the result on these computers.
Make a small test script of just the line TranslateName() line and the UDF for testing on your problem computers.