Hello,
There is a script I do it to find a user.
You must have the command NTNAME (and RCMD + RCMDSVC) to run.
I need RCMD+RCMDSVC to query a distant network.
You must give a DC controleur name where RCMSSVC is running and NTNAME must be installed on the path of it.
NTNAME could be found in http\\www.jsiinc.com
Change the variable $dc with the name of the DC. 
Code:
Break on
? "Where is my user ?"
?
:bcl
$dc="DC002"
? "Username (q to quit): "
Gets $user
If Ucase($user)="Q" GoTo end EndIf
If $user = @USERID
?
?
? "But it's you ! You still on " +@WKSTA
Else
? "Searching in local..."
$pc=ntname($user,"local")
If $pc =""
? "Searching on $dc..."
$pc=ntname($user, $dc)
EndIf
?
?
If $pc=""
? "$user not found !"
Else
? "$user find on $pc from $dc"
EndIf
EndIf
?
?
GoTo bcl
:end
?
?
? "That's Fini !"
?
?
Sleep 1
;*****************************************************************************************
Function ntname($user,$dc)
$tempfile="%temp%\ntname.txt"
If $dc ="local"
Shell '%comspec% /c ntname.exe $user > '+$tempfile
$=Open(3, $tempfile) = 0
$ntname = ReadLine(3)
$=Close (3)
Else
Shell '%comspec% /c rcmd \\$dc ntname.exe $user > '+$tempfile
$=Open(3, $tempfile) = 0
$x = ReadLine(3)
$x = ReadLine(3)
$ntname = ReadLine(3)
$=Close (3)
EndIf
Del $tempfile
EndFunction
_________________________
There is no stupid question. Whoever seeks is never stupid because he will know ...
Bruno