Determine if a Workstation is locked via a script
Posted on 2009-04-16
A recent MS security patch has broken my solution. So now I need to find another way. I need to be able to remotely determine if a Windows machine is locked or unlocked when a user is logged in. I use to be able to run a program on a remote machine interactively using, psexec -i, that would check the position of the mouse. If it had a crazy number, the machine was locked. Well apparently a recent patch has broken the -i option in psexec. So I can no longer remotely run programs that will interact with the console session. Atleast that is what it looks like. Any ideas? VBscript is prefered since all windows machines have that in our organization.