Solved

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

Posted on 2015-02-02
14
67 Views
Last Modified: 2015-02-18
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.
0
Comment
Question by:100questions
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 6
14 Comments
 
LVL 55

Expert Comment

by:McKnife
ID: 40584701
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
 

Author Comment

by:100questions
ID: 40584741
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
 
LVL 55

Expert Comment

by:McKnife
ID: 40584817
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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 55

Expert Comment

by:McKnife
ID: 40584827
0
 

Author Comment

by:100questions
ID: 40584841
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
 
LVL 55

Expert Comment

by:McKnife
ID: 40584854
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
 

Author Comment

by:100questions
ID: 40584881
Should the action be in a script?
0
 
LVL 55

Expert Comment

by:McKnife
ID: 40584906
No
0
 

Author Comment

by:100questions
ID: 40584915
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
 
LVL 55

Expert Comment

by:McKnife
ID: 40585125
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
 

Author Comment

by:100questions
ID: 40615073
it did not work.
0
 
LVL 55

Accepted Solution

by:
McKnife earned 500 total points
ID: 40615174
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
 

Author Closing Comment

by:100questions
ID: 40615650
It is not working in this particular situation.
0
 
LVL 55

Expert Comment

by:McKnife
ID: 40616000
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

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question