These are not new users, and the SamAccountName matches perfectly.

The problem I am having is that NOTHING is returned. No $ReturnName, no $Error, and no $ErrorText, so in my code:

Code:

$DN = TranslateName (3, "", 3, "@Domain\@wksta$", 1)
$DN = $DN[0]
$DN = split($DN,',DC=')[0]
$DN = Split($DN,',OU=')
$ubound = ubound($DN)
If $ubound > 1
$ComputerLOC = $DN[$ubound]
$secondLevel = $DN[$ubound-1]
If $ComputerLOC = 'HQ'
if instr('BIR;HAT;HFR',$secondLevel)
$ComputerLOC = $secondLevel
EndIf
EndIf
EndIf
If $DN[1] = "Metaframe"
$ComputerLOC = "CITRIX"
EndIf
If $DN[1] = "Memphis"
$ComputerLOC = "MER"
EndIf



$DN is not populated at all and I get an error at the line If $DN[1] yadda - "Array reference out of Bounds" or something like that...
_________________________
-- oobnuker - .KIX hack - no really.