Automatically log off idle Terminal Services users without using idle session limits?

5,156

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.

Share:
5,156
Nic
Author by

Nic

Updated on September 18, 2022

Comments

  • Nic
    Nic over 1 year

    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?

    • Zoredache
      Zoredache about 12 years
      Are they all using the same account to authenticate to the terminal server? Maybe setup a scheduled task like this?
    • Zoredache
      Zoredache about 12 years
      Or is there anything you can do to set an idle timeout on the thin client? Our Linux based thin clients have a setting to reload on certain conditions.
    • raja
      raja about 12 years
      Can you set the wyse terminals to restart on logoff? That would wipe the timeout message.
  • Nic
    Nic about 12 years
    The client sees the error message regardless of whether the session is disconnected or terminated. The error is visible immediately after the session closes, long before a new connection attempt is made.
  • Nic
    Nic over 11 years
    IdleStart is a small program that does exactly this.