HOW TO – Log off terminal sessions from remote computer

When connecting to a server/pc on the domain I often get the error msg

The terminal server has exceeded the maximum number of allowed connections.

Launch a command prompt from a computer on the same domain.

 quser /server: SERVERNAME

Result shows something like this:

USERNAME              SESSIONNAME        ID    STATE               IDLE TIME            LOGON TIME

 User01                          rdp-tcp#50             1           Active                  59           11/10/2012 2 35p.m.

 User02                         rdp-tcp#51            2             Active                1+14:14      14/10/2012 12:53 p.m.

Use the output to identify  the USER ID you want to disconnect

To disconnect a user:

Logoff /server:SERVERNAME USERID

Run the Q USER command again to confirm the user is off.

Done.

About craigoconcraigocon

New to Server Engineering Blog
This entry was posted in Uncategorized and tagged , , , . Bookmark the permalink.

1 Response to HOW TO – Log off terminal sessions from remote computer

  1. Note – Not quite sure what qualifies a PC to be able to run these commands, thinking its prob when its got terminal server installed!

Leave a comment