Hello,
what's I'm doing is:
The genneral login script make a logfile named [@Wksta].txt in a common folder on a server.
In this logfile there is the login name of the user.
Each time a user login the logfile is rewrited.
So I have a lot of files (one for each computer)
This is the logfiles I have since the beginning.(nothing to change)
My new admin script find in each logfile if a user is listed. I get the name of the logfile (it's the computer name). To be sure if the user is already in use I query the registry of this computer (this one only). I put this in a loop to get all the computers the user is logged on (if it's the case). I add also some tests if the username and computer exists of course.
This working well and fast.I query 2 distant networks across the routers.
Thank you, have a nice day.
_________________________
There is no stupid question. Whoever seeks is never stupid because he will know ...
Bruno