Remote Desktop

Users Logged In To Remote Desktop Server

Trying to log into a server using Remote Desktop and can't get in because there are too many people logged in already? Perhaps they closed out their session without actually logging out? Use the following command to find out who is currently logged in so that you can ask them to please log out so you can get in.

Assuming the server name you are trying to login to is called "myserver", use the following from a command line:

qwinsta /server:myserver

Kick Users Off Remote Desktop Session

Executing rwinsta from the command promp will return the help for the command:

  C:\>rwinsta /?
Reset the session subsytem hardware and software to known initial values.
RESET SESSION {sessionname | sessionid} [/SERVER:servername] [/V]
  sessionname         Identifies the session with name sessionname.
  sessionid           Identifies the session with ID sessionid.
  /SERVER:servername  The server containing the session (default is current).
  /V                  Display additional information.

Assuming the server name is "myserver" and the sessionid returned from the above qwinsta search was 3, use the following from a command line to log the user out of the remote desktop session.

rwinsta 3 /server:myserver