Well I was mostly right for this request.

Code:

$UserDistinguishedName = TranslateName (1, "domain", 4, "Bullock, Howard A.", 1)[0]
? "DN="+$UserDistinguishedName

$ADS_NAME_TYPE_DISPLAY = TranslateName (1, "domain", 3, "domain\user1", 4)[0]
? $ADS_NAME_TYPE_DISPLAY
exit 1




I examined and copied my "displayName" from the AD using LDP.exe to be sure that I got it correctly for input.

Translating from (3) ADS_NAME_TYPE_NT4 to (4) ADS_NAME_TYPE_DISPLAY works but the reverse does not. the code samples above show this.

This is documented somewhat in ...

;REMARKS Not all name types seem to work.