Score:0

How can I force a locked workstation to log off after a timeout?

cn flag

I would like to have workstations automatically log-off after a set period of inactivity. There are many solutions to lock a workstation after a timeout and a few hacks to log off a workstation when the user becomes inactive. However, when the workstation is locked but not disconnected, the query user command shows 'Active' for the user and those hacks do not work. (https://superuser.com/questions/269574/how-can-i-automatically-log-out-users-from-a-windows-machine?rq=1)

I would like to set a policy that would automatically log a user off after ~5 days of inactivity. Unfortunately this means using logon hours is not feasible as I cannot set certain hours or certain days for this logoff requirement.

The "idle" trigger for task scheduler also seems to not be ideal as any CPU activity blocks it rather than just user activity.

Unfortunately I also cannot justify a third-party utility or cost associated with this configuration.

Score:1
cn flag

One way that can be done is using a policy group if your are referring to RDP sessions. For example, go to: LocalComputerPoplicy --> Computer Configuration --> Administrative Templates --> Windows Components --> Remote Desktop Services --> Remote Desktop Session Host --> Session Time Limits. Set values in that policy as you need

Another option is the method described in this article. Or you can try this application that is free to use. If you are still using Windows 7, this old post can be helpful for your case.

duct_tape_coder avatar
cn flag
Thanks for your reply, unfortunately these will not work. First, these are local logons and not RDP sessions. Second, I cannot use third party apps so Idlelogoff.exe is not possible (even if the link wasn't removed due to malware). Third, winexit.scr won't work on a locked session and messes up screen saver requirements. Fourth, the "when computer is idle" task scheduler item is only when computer is idle and not the user, it doesn't work as expected.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.