Monday, October 19, 2015

Identify and disconnect / log off remote RDP sessions

Run QWINSTA to extract the RDP session information
  • QWINSTA /SERVER:servername

If the session exists, read the username and session ID.
  • To disconnect user 
    TSDISCON /SERVER:servername sessionID
  • To log-off user / kill the session
    RWINSTA /SERVER:servername sessionID

Ref :

No comments:

Post a Comment