How to check if a remote machine is locked - Windows XP
Posted on 2013-01-30
I have a few remote machines that we use RDP to access to run automated scripts. When we complete the setup and schedule a run, we close the RDP session but leave caffeine running, then next morning we expect the script have been executed BUT, we find that the machine seems to lock and nothing get run.
So, I want to poll the machines to see if they get locked through the night at some stage but I cant figure out how to do this. The machines do not have a screen saver running so I cannot check if the screensaver.exe process is running.
Also, I was thinking that RDP automatically locks the machine once the session is closed but I can see that if I close the RDP session, then VNC onto the machine, sometimes it's locked, sometimes its not :(
Any ideas ?? All help appreciaited!!