I found the only tool to know who is logged on to a given machine on our win
net is the nmblookup command.
Run with the -A options it gives the user on the machine (however in a
somewhat messy form)
$nmblookup -A mars.universe
Looking up status of 192.168.1.xxx
received 6 names
MARS <00> - B <ACTIVE>
UNIVERSE <00> - <GROUP> B <ACTIVE>
MARS <03> - B <ACTIVE>
MARS <20> - B <ACTIVE>
UNIVERSE <1e> - <GROUP> B <ACTIVE>
MARTIAN <03> - B <ACTIVE>
This show that the user martian is logged on to the machine mars.
However this only work for machines with winnt, even though our PDC is
running nt as well. If I make a query on a win 9x/Me machine, the nmblookup
tool shows nothing.
Anyone know how to improve on this?
Regards,
Mads