Solved

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

Posted on 2010-08-31
4
798 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
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:JimmyITCS
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Problem Description: Actually I found the below issue with some customers after migration from SMS 2003 to SCCM 2007 and epically if they change site code, some clients may appear in the console with old site code, plus old sites still appearing …
My previous article  (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)detailed one possible method to get SCCM 2007 installed an…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now