Solved

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

Posted on 2010-08-31
4
801 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Have you considered what group policies are backwards and forwards compatible? Windows Active Directory servers and clients use group policy templates to deploy sets of policies within your domain. But, there is a catch to deploying policies. The…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

772 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