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.



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.



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.



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?



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.



The first script here would do: http://www.nooblet.org/blog/2014/logoff-disconnected-users-via-batch-file/



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?

Share this

Related Posts

There was an error in this gadget