Tuesday, January 8, 2008

Killing a remote desktop session remotely

Every so often someone (including me) leaves a remote desktop session (Terminal services session for some) open on a machine that only has licenses for 1 or 2 simultaneous desktop sessions.  A few useful commands in these situations:

 

To see who is on the server/find out their session id:

qwinsta /SERVER:

 

To kill a remote desktop session:

rwinsta /server:

 

The mnemonic looks like it's query winstation and remove winstation but that's just a guess.

No comments :

Post a Comment