Wednesday, September 17, 2014

Disconnect users' RDP connection from a remote server

Sometimes you get the message "too many users connected", or you just want to disconnect a hanging session of yourself, and can't access the remote servers desktop, command line tools exist :

To check how many users are connected (and get the session Id of the session you want to kick:

qwinsta /server:[server name/ip]

This will show a list containing sessionname, username, id, etc. 
It's the Id we need for the next step :

rwinsta /server:[server name/ip]  [SessionId]

If you have the necessary rights the session will then be disconnected.

No comments: