Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.