Code:
Break On

call 'C:\KiXScripts\UDF\TranslateName.udf'
$DN = TranslateName (3, '', 3, '@LDomain\@userid', 1)
'OU = ' + Split($DN[0],',OU=')[1] ?
'Error = ' + $DN[1] ?
'ErrorText = ' + $DN[2] ?


This assumes that OUs are nested at least two deep.


Edited by Les (2004-06-11 09:04 PM)
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.