Wednesday, October 16, 2019

Logoff from a remote machine


Remote Logoff
  1. Open command prompt using remote machine login credentials
  2. Run QUser command to get list of remote sessions active for current logged in user
C:\Users\XYZ>QUser /server:servername
USERNAME              SESSIONNAME        ID  STATE   IDLE TIME  LOGON TIME
user1                                                            2  Disc     13+22:24  9/26/2019 9:48 AM
user2                          rdp-tcp#0                3  Active          .  9/26/2019 9:54 AM
user3 console                                             4  Active       2:14  10/7/2019 7:27 PM

  1. Run Loggoff command
C:\Users\XYZ>Logoff 3 /server:servername