Advertisement
Xyberviri

HowTo Log off windows sessions remotely CLI

Jun 21st, 2019
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. QUSER /SERVER:DC1
  2. LOGOFF 1 /SERVER:DC1
  3.  
  4. http://aboutwinserver.com/general/get-log-off-users-rdp-using-cmd-tols/
  5.  
  6. LOGOFF [sessionname | sessionid] [/SERVER:servername] [/V] [/VM]
  7.   sessionname         The name of the session.
  8.   sessionid           The ID of the session.
  9.   /SERVER:servername  Specifies the Remote Desktop server containing the user
  10.                       session to log off (default is current).
  11.   /V                  Displays information about the actions performed.
  12.   /VM                 Logs off a session on server or within virtual machine. The unique ID of the session needs to be specified.
  13.  
  14. QUERY USER [username | sessionname | sessionid] [/SERVER:servername]
  15.  
  16.   username            Identifies the username.
  17.   sessionname         Identifies the session named sessionname.
  18.   sessionid           Identifies the session with ID sessionid.
  19.   /SERVER:servername  The server to be queried (default is current).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement