Wednesday, July 6, 2011

Kicking off Idle Users from Windows Server

When working with servers that you remote into, sometimes people forget to log off, so you need to boot them. 

To query who is logged into a machine, do the following from the command prompt:

query session /server:SERVERNAME

You will be given the user's ID number to boot. Take that number, and boot the person:

rwinsta /server:SERVERNAME 1

Now you can log in.