Login | |
|
 |
RE: Check if somebody is logged on or computer is locked? - 1/19/2006 8:32:30 PM
|
|
 |
|
| |
ginolard
Posts: 1068
Score: 21
Joined: 8/10/2005
Status: offline
|
You could just check if Explorer.EXE is running. It's only ever running if a user is logged on and, for a machine to be locked, there needs to be a user logged on ;)
|
|
| |
|
|
|
 |
RE: Check if somebody is logged on or computer is locked? - 1/20/2006 12:18:54 AM
|
|
 |
|
| |
Country73
Posts: 733
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
|
That's seems to be a more simplified way of verifying a user is logged in or not. I guess I'm just used to my little script with psloggedon since I'm able to extract the UserName if someone is actually logged in.
|
|
| |
|
|
|
 |
RE: Check if somebody is logged on or computer is locked? - 1/20/2006 1:13:02 AM
|
|
 |
|
| |
ginolard
Posts: 1068
Score: 21
Joined: 8/10/2005
Status: offline
|
Crazymatt, That script is fine but it won't detect users who are logged on locally. I had exactly the same issue when developing ManagePC and the only way I could retrieve the logged-on user with any accuracy was to check the owner of the EXPLORER.EXE process. Matt
|
|
| |
|
|
|
|
|