Check all Current RDP Sessions
C:\>qwinsta /server:SERVERNAME SESSIONNAME USERNAME ID STATE TYPE DEVICE console 0 Conn wdcon rdp-tcp 65536 Listen rdpwd rdp-tcp#1 orace 1 Active rdpwd
Kill a Remote Desktop Session
C:\>rwinsta /server:SERVERNAME 1
Here “1” is the ID from previous checking of RDP sessions.
The killed connection will get the following message: