Tom ker 2012-05-05 02:14:53
Overnight processes we’re trying to run cannot reboot the PC if it has been
locked by the user or screen saver. The processes do run and successfully
reboot it if the user has logged off and the system is at the CAD screen.
My question then is, what is the best way to tell if someone is logged onto
a system? Once I determine that someone’s logged on, is there a way to tell
if the system has been locked by the user or has automatically locked
because of a secure screen saver timeout?
Ricardo m. urb 2012-05-25 01:33:35
Well, it’s easy enough to see if someone is logged in, but I don’t know
how you can tell if the workstation is locked.
nbtstat -a %ComputerName%
and look for ‘<03>‘ (w/o the quotes)
Ricardo M. Urbano
Microsoft Windows 2000/NT MVP