Windows Server 2012 Terminal Services Manager Options

11. July 2016 15:04

 

Invariably with our development servers someone will forget they are logged on, get disconnected and leave an unused Terminal Services session. One two people have done this, no one else can get logged in via RDP. In the good old days there was a nice gui tool available under admin tools – Terminal Services Manager. It is not there in Server 2012. However there are some command line tools available.

qwinsta – can be used to display the current RDP sessions.

C:\WINDOWS\system32>qwinsta /server:oma01tstade06
SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
services                                    0  Disc
console                                     1  Conn
rdp-tcp#48        htpham                    2  Active
rdp-tcp#49        costws                    3 Active
31c5ce94259d4...                        65536  Listen
rdp-tcp                                 65537  Listen

rwinsta – used to delete a session (specifying the ID number retrieved from the query).

C:\WINDOWS\system32>rwinsta /server:oma01tstade06 3

About the author

I'm a .NET developer, a husband and a father of three beautiful girls.

Month List