NTDOC -
Thinking off the top of my head, you could:

+ Win2K-class, run NBTSTAT -n to a file and use Readline for the value appended to 'Node IpAddress' in the 3rd line of the file.

+ WinNT-class, obtain IP address(es) using @IPADDRESSx, run NBTSTAT -A (ipaddress) to file, and check for 'Host not found' in the 1st line of the file.

Neither process is especially fast for login script usage, but shoud provide what you are looking for using existing NT tools with minimal scripting on your part.

Bill

[ 18 December 2001: Message edited by: bleonard ]