List and Logoff RDP Users Remotely

To get a list of the Remote Sessions in the command window (Get the session Id of user to kick out):

qwinsta /server:SERVERIP

To disconnect the remote session:

rwinsta /server:SERVERIP SESSIONID

From http://superuser.com/questions/62498/kicking-logging-out-remote-windows-users


Revision #1
Created 2023-11-10 04:39:02 UTC by Ryan
Updated 2025-03-12 14:59:54 UTC by Ryan