How to automatically log out of Windows 8 after 20 minutes of inactivity?

I would like to create a script or use system services to automatically log any one that is logged in - out - after 20 minutes of inactivity.  Remote users forget to log out therefore an automated log out after 20 minutes is needed.
100questionsAsked:
Who is Participating?
 
McKnifeConnect With a Mentor Commented:
That would mean your computer never enters the idle state for some reason. Please re-read how MS determines that state being reached and see if you can find out why it's not.
0
 
McKnifeCommented:
There used to be the Microsoft screensaver "winexit" - does that thing maybe still work on 8?
If not, create a scheduled task that runs after 20 minutes of idleness and uses qwinsta.exe to end sessions.
0
 
100questionsAuthor Commented:
Winexit does not seem to exits in Windows 8.
What are the steps to created a scheduled task to logout after 20 minutes of idleness?
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
McKnifeCommented:
For a winexit derivative, look at http://www.grimadmin.com/staticpages/index.php/ss-operations
About the task: open scheduler,
set the name to autologoff
set the executing account to system
set the trigger to "on idle"
on the "conditions" tab, change the idle time to 20 mins
set the action to be a script. That script would use qwinsta to list sessions and rwinsta to close the listed sessions. I would need some minutes to write it, so try the grimadmin one, first.
0
 
McKnifeCommented:
0
 
100questionsAuthor Commented:
Thank you.  There would only be one user, the same username logged in at any given time.  Would qwinsta and rwinsta therefore be needed in this case?
0
 
McKnifeCommented:
Then you would create the task much easier:
set the name to autologoff
 set the executing account to that user account with the option to "run only when logged on"
 set the trigger to "on idle"
 on the "conditions" tab, change the idle time to 20 mins
 set the action to be shutdown -L
0
 
100questionsAuthor Commented:
Should the action be in a script?
0
 
McKnifeCommented:
No
0
 
100questionsAuthor Commented:
This does not seem to work, it is not logging after the amount of minutes I have selected.
Perhaps this is not the best way to schedule this type of log off scenario?
0
 
McKnifeCommented:
The amount of minutes is not set, it's variable. Task Scheduler determines an idle state like shown here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa383561(v=vs.85).aspx
I am sure that you didn't consider that. Wait a Little longer...
0
 
100questionsAuthor Commented:
it did not work.
0
 
100questionsAuthor Commented:
It is not working in this particular situation.
0
 
McKnifeCommented:
Then you should not close the question. Please look at the task history - did it ever run? Maybe it ran, but there's another problem with it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.