Anyone know how to get the machine name(s) that a user is logged into from their user name? It doesn't look like any of the netapi32 functions return that info.


thanks,
will
Posted on 2005-02-24 17:36:25 by Will
Are you the network Administrator?

To solve my problem like this I simply made a login program to capture the information. Then put it into the main script for all users of my domain.



Date, Time, MAC Address, OS, Speed, IP, PC Name, Login, Memory, Entry Comment
2005/02/25 07:53, 00C04F09E132, W2K SP4.0, 598Mhz, 047, EDISTATION, edi, 180 of 255MB, NWlogon


Regards, P1 8)
Posted on 2005-02-25 08:46:14 by Pone
Actually I'm not. Any privileged netapi32 functions that you wouldn't want a "normal user" to have require admin rights though. I'm not interested in bypassing any access restrictions or anything like that. A co-worker who is a network admin asked me to code him a couple of small utilities (netapi32 stuff). The only thing that is missing he said is the ability to lookup a list of workstations that a particular user has logged into. He has a separate utility that does that already, but he asked me to roll it into one of the other programs that I coded for him.

Is there a way for someone with the appropriate admin privileges to call an api function (netapi32 presumably), passing a username as a parameter, and receive a list of the workstation(s) that a user is logged into?
Posted on 2005-02-25 12:13:44 by Will
If you have WINS available, you could query there.
Posted on 2005-02-25 12:48:35 by Kdr Kane
NT4 Domain or/and Active Directory for NOS? And are we using any other mixed NOSes? i.e. Novell or Kerberos.

Regards, P1 8)
Posted on 2005-02-27 16:01:14 by Pone
Pone:
We're using NT 4 and Active Directory.

Kdr Kane:
I can't seem to be able to find anything on WINS except for vbscript and wsh stuff. Is there a real API for WINS?


thanks,
will
Posted on 2005-02-28 11:58:55 by Will