Monday, 27 May 2013

Remotely disconnect RDP (Remote Desktop Connection) Sessions

If your problem is the following dialog, then you are within the right hands.
Of course, required permissions are no question!

Command prompt:
>qwinsta /server:
SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
console                                    0  Conn    wdcon
rdp-tcp                                 65536  Listen  rdpwd
rdp-tcp#2         user 1                   1  Active  rdpwd

rdp-tcp#11        user2                    2  Active  rdpwd

- So, there are two logged in users with session IDs 1 & 2.
- To disconnect user with SessionID=2:
>reset session 2 /server:

No comments:

Post a Comment