You are on page 1of 5

3/25/12

How to Remotely Terminate and Disconnect Remote Desktop (Terminal Services) Connections or Sessi

959

Living Digitally and Electronically

Social Stuff:

HOW TO GUIDE

SOFTWARE

MOBILE APP

INTERNET

HARDWARE

GAMING

DEVELOP

COMMUNITY

WINDOWS

SEARCH
My Digital Life Editorial Team 4 Comments Delicious

Sep 21, 2010

SUBSCRIBE

How to Remotel Terminate and Disconnect Remote Desktop (Terminal Services) Connections or Sessions
Every now and then, user who attempts to establish Terminal Services or Remote Desktop connection to Windows 7, Windows Vista, Windows Server 2008 (R2), Windows Server 2003, Windows Server 2000, Windows Home Server or other RDP-supported server may encounter the terminal server has exceeded the maximum number of allowed connections error message. The error happens because the there previous sessions or existing RDP connections to the server or host which were not disconnected or terminated properly. To make matter worse, if the only Terminal Server on the network has been fully connected to by remote clients, and no extra slots available, its possible for administrator to remotely sign onto the server to use Terminal Services Manager to kill the any RDP connections. Instead of restarting or rebooting the host or server which user wants to remote desktop into or remote control, heres alternative workaround methods to remotely disconnect or terminate the stuck Terminal Services or Remote Desktop sessions and connections. Me hod 1 1. The Terminal Services Manager or Remote Desktop Services Manager can be used to disconnect and reset any Terminal Services or Remote Desktop connections. Depending on operating system, there are different ways to start and run Terminal Services Manager. Windows XP and Windows Server 2003 or earlier: Click on S a -> R n and type %S emRoo %\S em32\ admin.e e

Get latest updates in email for free:

TRANSLATE THIS PAGE Select Language

Windows Vista Windows Server 2008: Click on S a and type admin.m c into Start Search box.

Windows 7 and Windows Server 2008 R2 or later: Click on S a and type Remo e De k op Se ice Manage into Start Search box.

Tip: On client operating system or workstation, Remote Server Admin Tools (RSAT) has to be installed
mydigitallife.info/ /how-to-remotely-terminate-and-disconnect-remote-desktop-terminal-services-conn 1/5

3/25/12

How to Remotely Terminate and Disconnect Remote Desktop (Terminal Services) Connections or Sessi

for the Manager to exist. 2. Once the Remote Desktop Services Manager or Terminal Services Manager is launched, right click on Remote Desktop Services Manager or All Listed Servers and select Connec o Comp e . 3. Then, type in the name or IP address of the server running Remote Desktop Services that wants to be managed. Log on to the remote server if required. 4. Authenticated server will be listed on the left pane. Select the applicable server with not responding Remote Desktop session. 5. On the right pane, go to Se ion pane. 6. Right click on the session that wanted to be disconnected and select Di connec . Me hod 2 1. Launch a Command P omp window. 2. Authenticate to the remote computer by using the following net use command: n e e/ e:dii Amn ao \<e e nm o I ade >C \ ae P d \$

Replace <server name or IP address> with actual NetBIOS computer name or IP address of the remote host. For example, net use /user:Administrator \\188.8.8.8\C$. Enter password when prompted. 3. Terminate any existing Remote Desktop or Terminal Services connections with the following command: ee e in<>/e e: e e nm o I ade > o n < ae P d

Replace <server name or IP address> with actual NetBIOS computer name or IP address of the remote host. For <n>, enter a number incrementally starting from 1, 2, 3 , until a message session ID n not found is been returned as error when executing the command. For example, reset session 1 /server:188.8.8.8. Tip: No notification message will be displayed when a session is successfully terminated. Me hod 3 1. Launch a Command P omp window, and authenticate to the remote host by using the following net use command: n e e/ e:dii Amn ao \<e e nm o I ade >C \ ae P d \$

Replace <server name or IP address> with actual NetBIOS computer name or IP address of the remote host. For example, net use /user:Administrator \\188.8.8.8\C$. Enter password when prompted. Alternatively, from Windows Explorer, map to a network drive to share a folder on the target server, and log in accordingly. 2. In Command Prompt, run the following command: qwinsta /server:<server name or IP address> Where <server name or IP address> is the actual computer name or IP address of the remote host. For example, qwinsta /server:188.8.8.8. 3. A list of active and connecting Remote Desktop or Terminal Services sessions will be displayed. Identify the hung connection and its ID. 4. To reset and disconnect the Remote Desktop connections or sessions, run the following command: rwinsta <ID> /server:<server name or IP address>
mydigitallife.info/ /how-to-remotely-terminate-and-disconnect-remote-desktop-terminal-services-conn 2/5

3/25/12

How to Remotely Terminate and Disconnect Remote Desktop (Terminal Services) Connections or Sessi

Replace <ID> with the session ID identified with qwinsta command, and <server name or IP address> with the actual computer name or IP address of the remote host. For example, rwinsta 1 /server:188.8.8.8 Note: qwinsta is Query Window Station and rwinsta is Reset Window Station. Once a Remote Desktop or Terminal Services connection or session is terminated and disconnected, the slot will be released and remote user can login remotely again. Related posts: 1. How to Remotely Enable Remote Desktop (Terminal Services or RDP) via Registry in Windows 2000/XP/2000/Vista/2008 2. How To Increase Color Depth and Quality of Windows XP Accessed Via Remote Desktop or Terminal Services 3. Enable Multiple Concurrent Remote Desktop Connections or Sessions in Windows XP 4. Workaround for Remote Desktop Client to Connect to Localhost (Local Terminal Server Service) 5. Freeware to Turn On and Enable Remote Desktop on Another Computer Remotely

4 Comments
L binda Akamandi a January 22, 2012 at 5:44 pm
REPLY

Very nice tips indeed. I nolonger need to every now and then walk to the server room/ Thanks

Pe e

September 22, 2010 at 2:39 am

REPLY

First try <code>mstsc /v:server.address /admin</code> This should allow the console session to be taken over, this is always possible even when all the RDP slots are occupied. Also, shouldn't the sentence be slots available, it's NOI possible for

Jennife B o n September 21, 2010 at 11:28 pm

REPLY

All your given tips are very nice and helpful also. You can also try some stpes like: First of all you must be logged in to your client computer as a domain Admin user. Now open the command prompt and type in the following command. qwinsta /server:SERVERIP The Ip address or domain name of the Remote server should be entered in place of SERVERIP Example: qwinsta /server:10.10.1.10 You will get a list of the Remote Sessions in the command window. In order to disconnect that user we are going to use the session ID. Use the following command line to disconnect the remote session. rwinsta /server:SERVERIP SESSIONID For example in order to terminate the session of the Administrator user the following command
mydigitallife.info/ /how-to-remotely-terminate-and-disconnect-remote-desktop-terminal-services-conn 3/5

3/25/12

How to Remotely Terminate and Disconnect Remote Desktop (Terminal Services) Connections or Sessi

should be given. rwinsta /server:10.10.1.10 2 Now lets confirm if the user is really disconnected. Just type in the qwinsta command in proper format. Then you found a message

a fo

September 21, 2010 at 11:02 pm

REPLY

thanks for the tip; but i have a comment; you don't need to make step 1 (net use .) you can just open the cmd with the rwqueted user permission (Run as). and continue.

Leave a comment
Name (required)

Mail (will not be published) (required)

Website

Comment

POST COMMENT

Confirm you are NOT a spammer Notify me of followup comments via e-mail. You can also subscribe without commenting.

NEW ARTICLES
Orient Watch Worldtime Journeyman worth $680 Free Giveaway Contest HTC Rezound Combines 4.3 True HD Screen with Beats Audio Technology iOS 5 for iPhone, iPod touch and iPad Released for Download Find My Friends App for iOS Free

LATEST DISCUSSIONS mariorocks on Official Windows 7


SP1 ISO from Digital River Selvan777 on FireFox Spell Checker Not Working Due to Missing Dictionary

mariorocks on Official Windows 7


SP1 ISO from Digital River

Test on Windows 8 Developer


Preview (Pre-Beta) Build 8102

mydigitallife.info/

/how-to-remotely-terminate-and-disconnect-remote-desktop-terminal-services-conn

4/5

3/25/12
Download iCloud Lives

How to Remotely Terminate and Disconnect Remote Desktop (Terminal Services) Connections or Sessi
Released

Tom on Windows XP Setup Could Not


Detect and Find Any SATA Hard Disk Drive on AHCI Mode

2005 - 2012 My Digital Life. All Rights Reserved.

About | Contact | DMCA | Privacy Policy

mydigitallife.info/

/how-to-remotely-terminate-and-disconnect-remote-desktop-terminal-services-conn

5/5