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:10.10.10.10
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:10.10.10.10

No comments:

Post a Comment