Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

verifying if computer is locked

Status
Not open for further replies.

brian32

Vendor
Joined
Mar 20, 2005
Messages
35
Location
US
How can I use VBScript to determine if a computer is locked and by who?

I know I can use the following methods to determine who's logged into the desktop:

GetObject("winmgmts:\\client01\root\cimv2")

objWMIService.ExecQuery("Select * From Win32_Process Where Name = 'explorer.exe'")

But how can I tell if the computer is locked by the user? Thanks.
 
if a screen saver or login/password prompt is running.
 
And how do I script that?
 
you have to check to see if this app is active:
logon.scr
what have you done so far?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top