If you are an IT administrator there will come a time when you find RDP problems and the first step to resolving them is to kill all the session. But how?
In the example below we use QUSER with the LOGOFF command to log out the only user on server ABCM04.
The commands are:
quser /server:<server-host-name>
and press ENTERlogoff <#> /server:<server-host-name>
PS C:\Users\calga> qwinsta /?
Display information about Remote Desktop Services sessions.
QUERY SESSION [sessionname | username | sessionid]
[/SERVER:servername] [/MODE] [/FLOW] [/CONNECT] [/COUNTER] [/VM]
sessionname Identifies the session named sessionname.
username Identifies the session with user username.
sessionid Identifies the session with ID sessionid.
/SERVER:servername The server to be queried (default is current).
/MODE Display current line settings.
/FLOW Display current flow control settings.
/CONNECT Display current connect settings.
/COUNTER Display current Remote Desktop Services counters information.
/VM Display information about sessions within virtual machines.
This website uses cookies.
View Comments
Small typo in #2. Type user /server: and press ENTER
Should be quser /server:
I mean, yeah, anyone that read the post should be able to figure that out. We just live in such a copy/paste world I'm afraid the youth will try one time and give up.
Fixed! Thanks Rus!