Looking for "after idle for x minutes, logoff" solution
Posted on 2009-02-13
I need to review the possibilities of scripting a solution to log off a user after "X" idle time. I've researched some possibilities, however I haven't come up with anything yet.
From the sounds of it, WMI does not have a method to check the idle time on a windows session.
One of the things I was thinking about trying is to read the position of the mouse and storing the position in a variable. If the position is the same, then the computer is idle; however, the only way I can think of to check the mouse position is to set an app as focus and check the mouse positioning there.
Does anyone have any possible solutions for this? I'd prefer to stick to scripting methods and stay away from third party software, but any suggestions are welcome.