Solved

Clear Terminal Server Has Exceeded the Maximum Number of Allowed Connections??

Posted on 2010-08-31
4
803 Views
Last Modified: 2012-05-10
does anyone know how i can clear all the RDP connections on the windows 2003 server?

0
Comment
Question by:cadnyc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 70

Accepted Solution

by:
KCTS earned 500 total points
ID: 33570530
Open the Terminal Services Manager and kill the sessions
0
 
LVL 58

Expert Comment

by:cyberkiwi
ID: 33570557
You can use start run tsadmin to check and logoff/reset sessions. To get on, you can try start run mstsc /admin /console to connect to a console session
0
 
LVL 3

Expert Comment

by:frogmanalien
ID: 33570562
From http://ts.veranoest.net/ts_faq_administration.htm#reset_sessions - try this in a batch file@
    REM ** Disable new logons
   change logon /disable
   REM ** Throw out all existing sessions by resetting the listener session
   for /f "tokens=2" %%i in ('qwinsta ^| find /i "listen"') do echo y | rwinsta %%i
   REM ** Maintenance jobs like backup comes here
   REM ** start /wait ensures that this job waits until the command
   REM ** is executed completely before going on to the next command
   start /wait <your maintenance command comes here>
   REM ** Maintenance is finished. Let users in again
   change logon /enable

(this obviously is structured to allow you to pause and run a task before re-enabling the logins- the important bit is line 4

Hope that helps.
0
 
LVL 4

Expert Comment

by:Jimmy Andrews
ID: 33570616
The easiest way to clear the RDP sessions is to log into the specific server with an Admin account (Domain or Local), start the Task Manager (right-click taskbar and select task manager) and then go into the Users tab.  From there you can log off all the other RDP sessions.

If you can't log in because it is a non-terminal server and both admin logins are used, then you will need to do it remotely.  To accomplish that, you will need the Windows 2003 AdminPak installed for XP/2003 or Remote Server Administration Tools (RSAT) for Vista/Win7/2008.

In XP/2003 (after tools install)
-Open Administrative Tools from the Control Panel
-Look for and open Terminal Services Manager
-Connect to the problem server
-Find the logins and log them out

In Vista/Win7/2008 (after tools install)
-Open Administrative Tools from the Start Menu
-Look for Remote Desktop Services Folder
-Select Remote Desktop Services Manager
-Connect to the problem server
-Find the logins and log them out

Note that the RSAT install requires you to go into Add Windows Components and add it from there, after a download.  The AdminPak install for XP/2003 does not require this step.

Jimmy
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is my 3rd article on SCCM in recent weeks, the 1st (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/A_4466-A-beginners-guide-to-installing-SCCM2007-on-Windows-2008-R2-Server.html) dealing with installat…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question