List and logoff remote RDS sessions

Some tooltips on remote sessions query and logoff:

QWINSTA

qwinsta /?

Command line tool to query current sessions

(alternative command line tool: query user or quser)

OR:

Download PStools from sysinternals and use the utility psloggedon.exe

 

——————-

LOGOFF

Several options… one is

take note of session ID in question by using qwinsta, then
rwinsta SessionID /server:”servsername” /V(erbose)

OR;

logoff /?

To logoff a remote session, take a note of ID and use it like:

logoff /server:myserver 15 /v

More articles