There's two parts, the list sessions (query session) and the terminate session (reset session).
First, the list session. the command below will list all the current sessions that a PC has, both local and remote.
qwinsta /server:[servername]
Once you have the session you want to terminated, find the ID number beside it and use this command to terminate that session
rwinsta /server:[servername] [ID]
Comments