Log off a disconnected user remotely
- skarbnik

- May 13, 2018
- 1 min read
Updated: Jan 5, 2022
First, check the session number with qwinsta:
QWINSTA /server:YOURCOMPUTERNAMEHERE
Write down the session ID.
Then use the logoff command:
LOGOFF YOURSESSIONIDHERE /server:YOURCOMPUTERNAMEHERE
Remotely logoff a user by username in one command:
logoff /server:"servername" | qwinsta /server:"servername" "username"

Comments