cmd command to display connected user and client names
Asked Answered
S

0

1

I am looking for cmd command to list all user and client names connected to Windows server. This info can be seen at user tab of task manager but I need with cmd command. I can get user name but none of them display client name.

  • query user
  • query session
  • query termserver
  • query session
  • netstat
  • ipconfig/all

Is there any cmd command to display client name?

Thanks,

Swayne answered 26/1, 2018 at 5:38 Comment(5)
reg query "HKCU\Volatile Environment" -v ClientName -s?Hetero
@jJosefZ I connected to server, executed from cmd of server, it displayed only my computer's name (current user) . I need all computers' name connected to server. Also I need this info together with username. Is not there any command displaying all users/client name couple?Swayne
what exactly do you mean with "connected"? RDP-Connections, Shared Drives or just "on the same network"?Misdo
@Stephan, connected via Remote Desktop. I need to get which users are connected from which client (computername)Swayne
@Misdo "query user" command display username, not client (ip address or computer name). On the other hand, "rwinsta" command displays ip address, not user. Is not there any command display both of them?Swayne

© 2022 - 2024 — McMap. All rights reserved.