如何查看到 Windows 服务器的活动远程连接 (RDP)?

gpi*_*kas 42 rdp remote-desktop-services windows-server-2012-r2

如何查看当前连接到具有远程桌面客户端的服务器 (Windows 2012) 的用户?我自己通过 RDP 连接到这台服务器。

此问题提供了一种通过已建立的连接获取 IP 地址的解决方案。我会对用户列表或他们的会话以及这些会话上次何时处于活动状态感兴趣。

Dan*_*Dan 50

您可以在远程计算机的命令提示符中键入“查询用户”以快速查看

  • 您可以将其缩短为 `quuser`。 (9认同)

pat*_* o. 33

在服务器上运行“qwinsta”命令,或使用 /server:servername 开关。

>qwinsta /?
Display information about Remote Desktop Sessions.

QUERY SESSION [sessionname | username | sessionid]
              [/SERVER:servername] [/MODE] [/FLOW] [/CONNECT] [/COUNTER] [/VM]

  sessionname         Identifies the session named sessionname.
  username            Identifies the session with user username.
  sessionid           Identifies the session with ID sessionid.
  /SERVER:servername  The server to be queried (default is current).
  /MODE               Display current line settings.
  /FLOW               Display current flow control settings.
  /CONNECT            Display current connect settings.
  /COUNTER            Display current Remote Desktop Services counters informati
on.
  /VM                 Display information about sessions within virtual machines
.
Run Code Online (Sandbox Code Playgroud)

您还可以使用“rwinsta”命令重置RDP 会话:

>rwinsta /?
Reset the session subsytem hardware and software to known initial values.

RESET SESSION {sessionname | sessionid} [/SERVER:servername] [/V]

  sessionname         Identifies the session with name sessionname.
  sessionid           Identifies the session with ID sessionid.
  /SERVER:servername  The server containing the session (default is current).
  /V                  Display additional information.
Run Code Online (Sandbox Code Playgroud)


小智 24

您可以在任务管理器用户选项卡中看到

  • 啊,我担心它会这么容易被我忽视 (2认同)

归档时间:

查看次数:

200030 次

最近记录:

5 年,11 月 前