Best regards,
Alan.
--
Regards
Matjaz Ladava, MCSE (NT4 & 2000), Windows MVP
mat...@ladava.com
http://ladava.com
"Alan Kidner" <alan....@nwarks-hinckley.ac.uk> wrote in message
news:06d001c36cf2$fe59cf90$a301...@phx.gbl...
Best wishes, Alan.
>.
>
Best wishes, Alan.
>.
>
*Logged On* is a slipper concept in Windows. You can't really define it. It could be an interactive logon, it could be a
batch logon, it could be a service logon, it could be a runas logon, a network connection, etc. Basically when you logon
depending on how many servers you connect to and what kind of client and server mix you have you could have several
authentications right at logon. I could be on your network doing something with one ID and never logon interactively
with it, at that point am I logged on with it? How about a user who logs on then hibernates for a week, is she logged on
or not? The PC thinks so because when you fire it back up you are right at the same spot on the screen you were a week
ago...
The closest you can get in a domain or workgroup type of environment is to enumerate who has sessions at any given
machine. This is done by NetSessionEnum. If you want to find out who is logged on interactively at a machine, there are
ways of doing that as well. Check out www.sysinternals.com for methods they have found to do it though you won't find
much VB there, they are c++ guys as they are pretty serious.
--
Joe Richards
www.joeware.net
--
"Alan Kidner" <alan....@nwarks-hinckley.ac.uk> wrote in message news:042c01c36d59$c5d42f00$a001...@phx.gbl...
Best regards, Alan.
>-----Original Message-----
>Besides what Joe suguested, I woud add, that it could be
possible, to create
>a script and use it as a user logoff script (trough
GPO), which would set
>that attribute, but you would have to delegate
permission to the user to
>populate this field.
>
>--
>Regards
>
>Matjaz Ladava, MCSE (NT4 & 2000), Windows MVP
>mat...@ladava.com
>http://ladava.com
>
>
>"Joe Richards [MVP]" <humore...@hotmail.com> wrote in
message
>news:%23KGD37d...@TK2MSFTNGP09.phx.gbl...
>.
>