Yesterday I had to get logged into a Windows Server, however the connections were all consumed already. I had to kick somebody. I’d never done this via the command line, so I pinged a coworker who laid out how to lay low the over-connected users. With two simple commands I was logged in and running!
To see who is logged into a server…
[sourcecode language=”bash”]
qwinsta -server theServerNameHere
[/sourcecode]
…and then to kick the users by their ID as shown by the query command above…
[sourcecode language=”bash”]
rwinsta -server theServerNameHere ID#
[/sourcecode]
…and you can now access the server via Remote Desktop Connection. Have fun with your new found connection powers! 🙂