total.pardo

…the synergy of all things civilized

kill remote desktop sessions individually

Comments

ever need to kill a rdc by session?

>query session /SERVER:myserver.myco.com
 SESSIONNAME       USERNAME                 ID  STATE   TYPE
 console                                     0  Conn    wdcon
 rdp-tcp                                 65536  Listen  rdpwd
 rdp-tcp#11        Administrator             1  Active  rdpwd
 rdp-tcp#4         Administrator             2  Active  rdpwd

The above show 2 connections to "myserver".
You can kill the sessions with ID 1, 2, 3, so on.

tsdiscon 1 /SERVER:myserver.myco.com
works like a charm.

Written by pardo

November 18th, 2008 at 1:12 pm

Posted in life.stream, tech

Tagged with ,