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.
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.