kicking / logging out remote windows users?

I'd like to have something akin to a unix "who" and an option to kick out RDP sessions that are not supposed to be there (i.e. using up the limited number of connections). This is for a win2003 server Standard.

Additional info: this is a devel environment, people all use RDP as Administrator (I know, I know), so kicking out should be by session number or at least by remote IP/machine name, not per user.

Thanks!

4 Answers

Refer this post on kicking the users.

The summary of the commands is as follows:

Use qwinsta to get a list of the Remote Sessions in the command window (Get the session Id of user to kick out):

qwinsta /server:SERVERIP

Use rwinsta to disconnect the remote session:

rwinsta /server:SERVERIP SESSIONID

Also you may want to change the default timeout for idle RDP connections.here or here.

1

You should also be able to do this by pulling up Task Manager and going to Users and selecting users to Logoff or Disconnect. Disconnect will close their RDP session, but they can log back in to it. Logoff will... well, log off their current session.

1

For Windows 7 or other client OS from Microsoft, some of the MSTSC options will not work. As a last resort you may want to try restarting the machine (if that is an option)

shutdown /m mydevbox.myorg.com /r /f /t 0

mstsc /console or mstsc /admin should let you always log on, but it will kick off anyone else who's logged in using the same technique.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like