Current Users Logged In

  • Thread starter Thread starter Warren
  • Start date Start date
W

Warren

Hi,

I am looking for a way (probably need an API call) to find
out the Windows NT login IDs for all the users currently
logged into the system (at a given point in time).

One of the methods often posted to get Windows NT Logins
only retrieves the "your" user ID.

Another way looks at the .LDB file; however, this does not
contain NT login info (just Access login IDs).

Does anyone know how this information can be retrieved?

Thanks
Warren
 
When you say "all the users currently logged into the system", I assume you
mean using the MDB.

Since Access doesn't use the network login ID, there's no easy way of doing
this.

The LDB file also contains the machine name that the user's logged in on and
the NetWkstaGetInfo API call will retrieve the user logged onto that
machine. You should be able to retrieve each machine name, and convert it to
a user ID.

Randy Birch has sample code at
http://www.mvps.org/vbnet/code/network/netwkstagetinfouserinfo.htm but it's
not one of his more intuitive examples <g>
 
Back
Top