Powershell 查看&注销远程登录用户
## Powershell 远程登录用户列表
1. `qwinsta`
2. `icm -ComputerName 192.168.1.1 -Authentication Negotiate {gwinsta}`
## Powershell 远程查看目标服务器远程登录用户列表
1. `rwinsta 3` # 数字3 代表远程session ID
2. `icm -ComputerName 192.168.1.1 -Authentication Negotiate {rwinsta rdp-tcp#11}` # rdp-tcp#11 代表SessionName
---
***官方链接***:
1. [qwinsta](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/qwinsta)
2. [rwinsta](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/rwinsta)