用 quser 查看 Windows 上有哪些人登录

在命令行列出所有登录会话、登录时间和空闲时间。

Windows会话用户管理员低风险
运行 `quser`,即可列出本机所有登录用户及其会话 ID、登录时间和空闲时长。

01命令

命令
$ quser

02作用说明

quser 会显示每个登录会话——包括本地控制台(有人在电脑前)和 RDP 远程会话,并标明是 Active(活动)还是 Disconnected(已断开)。它最适合用来确认没有其他人在用你的电脑,或在服务器上找出占用许可的遗留断开会话。输出中的会话 ID 就是 `logoff <ID>` 结束会话时需要的参数。

03风险

风险低风险
使用条件On another computer add /SERVER:name (requires admin rights on the target).

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • Net command - Windows CMD
    SS64 · technical · 2026-09-17
    依据: `net user <name> *` prompts for a new password for a local account.
  • Whoami - Windows CMD
    SS64 · technical · 2026-09-17
    依据: whoami /groups output includes the Mandatory Label integrity level; S-1-16-12288 indicates a high-integrity (elevated) process.

最后验证: 2026-09-18 · 分类: 安全与隐私