Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How do I find out which remote desktop sessions are active on a Windows Server 2003 box?

share|improve this question

4 Answers 4

up vote 10 down vote accepted

Start -> Administrative tools -> Terminal Services Manager

Click on your servers name and it will list the active sessions on the right, there is also a field for the session state. Another tab called 'Sessions' will show active users, listeners and the console sessions.

share|improve this answer

The commandline way, which you can even remotely use, is

qwinsta /server:server

which will list the current sessions and their status, and with

rwinsta /server:server <sessionid>

and the proper privileges you can disconnect a session, particularly useful when the limit has been reached and you are not connected.

<sessionid> there is the number listed in qwinsta's result

share|improve this answer
    
+1 for major awesome coolness –  Brandon Jul 30 '09 at 5:13

If you have a remote desktop open to the server in question, you can see other sessions on the same server in the Task Manager (Ctrl-Shift-Esc).

share|improve this answer

I'm a developer who was unable to RDP to a server because all available sessions were in use. I don't have Terminal Services manager, so none of the answers above applied. I use powershell for this kind of Windows service management, and I had success using the PowerShell module PSTerminalServices, which is from a MS employee (or group). Hit the link to install the MSI, then run the following from PowerShell:

Import-Module PSTerminalServices
Get-TSSession -ComputerName _MyRDPServer_ | Out-GridView
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.