Login | |
|
 |
RE: get all logged in users - 3/19/2006 5:07:42 PM
|
|
 |
|
| |
rOOs
Posts: 63
Score: 0
Joined: 2/28/2006
From: Switzerland
Status: offline
|
I used google and found this: http://www.codecomments.com/archive300-2005-6-514817.html and there i found this: use psloggedon from the pstools suite to get all users currently logged on locally or remotely to the system and search through the output for the username...
|
|
| |
|
|
|
 |
RE: get all logged in users - 3/20/2006 4:06:09 AM
|
|
 |
|
| |
ebgreen
Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
|
I use the SysInternals tools all the time myself, but if you want to do this in a self contained fashion, you should be able to do it by iterating all the instances of the Win32_ComputerSystem WMI class and looking at each instance's .UserName property.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|