Skip to main content
Terminal Services Managerv26.10 · Oct 2026 Download View Pricing

How to log off idle users on a Remote Desktop server

Sessions left idle or disconnected hold memory and CPU that active users need. There are two ways to deal with them: enforce automatic timeouts with Group Policy, and clear them on demand when you need resources back now.

The automatic way: Group Policy time limits

For a standing policy, configure session time limits under:

Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Session Time Limits

  • Set time limit for active but idle Remote Desktop Services sessions: disconnects a session after a period of no input.
  • Set time limit for disconnected sessions: logs off a disconnected session after a period.

These apply farm-wide on the next policy refresh, which suits a baseline. They are a poor fit for a one-off cleanup right now or a different threshold for one maintenance window.

The on-demand way: Terminal Services Manager

Terminal Services Manager clears idle and disconnected sessions across one or many servers in a single action, using an idle threshold you set in the program.

Set the threshold. Open File > Preferences > Terminal Services and set Consider user idle after to the number of minutes of no input that marks a session as idle (1 to 1440, default 5). This drives the idle count and the idle actions below.

Terminal Services preferences page with the Consider user idle after setting under User activity

Clear sessions. In Servers, select the servers, right-click, and pick the action that fits:

  • Disconnect idle users: drops the connection of sessions idle past the threshold, but keeps the session so the user can resume.
  • Log off idle users: ends the sessions idle past the threshold, freeing their resources.
  • Log off disconnected users: ends only the sessions already in the disconnected state.
  • Disconnect users / Log off users: act on every user on the server.

Server right-click menu with the disconnect and log off commands for idle, disconnected, and all users

Each command confirms, then runs against every selected server.

Disconnect or log off?

Disconnect leaves the session running so the user keeps their open work; Log off ends it and returns the memory and CPU. For routine cleanup of finished users, log off.

Target specific sessions instead

To pick individual sessions rather than sweep a server, filter the User sessions list with the Idle users or Disconnected users preset, select the rows, and use the per-session actions. See how to log off disconnected RDP sessions.

Preset buttons above the user sessions list, including Idle users and Disconnected users

Related

Links