Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how do you disconnect an active user logged in to a box? There should be a command line tool that comes with Windows, but I forgot it's name. It lists all the users logged in to a box and you can force disconnect of some, because, for example, you want to Remote Desktop to it and there's too many users

share|improve this question
up vote 3 down vote accepted

You are looking for a combination of the rwinsta and qwinsta commands.

first do qwinsta /SERVER:<server_name> to get a list of session ids then do rwinsta <session_id> /SERVER:<server_name>

It should also be noted you can use the /console (rdp client < 6.0 i believe) or /admin (rdp client > 6.0 i believe) to get in onto session 0 or the console session which should allow you to kick people from the gui.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.