From LedHed's Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
Note: It does not return the names of users who are connected via RDP.
 
Note: It does not return the names of users who are connected via RDP.
 
  WMIC /NODE: "workstation_name" COMPUTERSYSTEM GET USERNAME
 
  WMIC /NODE: "workstation_name" COMPUTERSYSTEM GET USERNAME
 +
 +
 +
== Command Line ==
 +
To see a list of remote connected users run this command:
 +
qwinsta
 +
or for a list of remote connected users on another server:
 +
qwinsta /server:<SERVER_HOSTNAME>
 +
or
 +
query.exe user /server:<SERVER_HOSTNAME>
 +
Where <SERVER_HOSTNAME> is the hostname of the server you want to check.
  
  
  
 
[[Category:Remote_Admin_Tricks]]
 
[[Category:Remote_Admin_Tricks]]

Latest revision as of 16:56, 2 March 2016

WMIC

This command will return the name of the user who is currently logged into the console.
Note: It does not return the names of users who are connected via RDP.

WMIC /NODE: "workstation_name" COMPUTERSYSTEM GET USERNAME


Command Line

To see a list of remote connected users run this command:

qwinsta

or for a list of remote connected users on another server:

qwinsta /server:<SERVER_HOSTNAME>

or

query.exe user /server:<SERVER_HOSTNAME>

Where <SERVER_HOSTNAME> is the hostname of the server you want to check.