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 SkipVought 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
Mar 20, 2005
35
0
0
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.
 
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