Automatically log off idle Terminal Services users without using idle session limits?
We have a Remote Desktop Session Host that is accessed by Wyse Winterm 3150SE thin clients running Windows CE 5.0. The stations are open to the public, and are supposed to display our homepage when not in use. However, some people leave the browser sitting at a different page, or in some other unexpected state.
I want to make it so that idle sessions are automatically logged off after 5 minutes, but there's a problem with using Terminal Services idle session limits. After disconnecting an idle user, the client always shows a message that says roughly "The remote session was ended because the idle timeout limit was reached.
" This error message tends to scare off would-be users.
Is there any way to prevent the idle timeout message from appearing when idle session limits are used?
I already tried using a screen saver (winexit.scr) to log off idle users, but apparently screen savers can't be run in Remote Desktop Sessions on Server 2008 and later. Is there some other way to trigger a log off as if the user themselves had initiated it?
Solution 1:
Write an app which is in the startup group which monitors for mouse movement and or keystroke usage. If it detects none for a few minutes it can just call the logoff api.
As to how to do that, you'll have to ask a developer. It shouldn't be all that hard.