Current Users Logged In

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
 
D

Douglas J. Steele

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top