首页/安全/应急响应速查/RDP 连接与来源记录查询

RDP 连接与来源记录查询

远程桌面连接在 TerminalServices 通道留下 1149 记录(含来源 IP 与账号),与 4624 Type 10 互相验证。

应急响应速查安全更新于 2026-10-12
通道Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational
事件1149 认证记录(含来源 IP、用户名)
补充Security 4624 LogonType=10
命令Get-WinEvent 或 wevtutil qe

查询 RDP 连接记录

查询 RDP 连接记录
Get-WinEvent -LogName 'Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational' -MaxEvents 200 -ErrorAction SilentlyContinue | Where-Object { $_.Id -eq 1149 } | Select-Object -First 20 TimeCreated, Message | Format-List
wevtutil qe Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational /c:20 /rd:true /f:text
通道未启用时查询为空;先确认日志存在,否则退回 4624 Type 10 的统计。

易错点

  • 把 1149 当安全事件本身:它只是认证记录,要结合后续 4624 与操作
  • 通道名凭记忆写:先用 Get-WinEvent -ListLog *TerminalServices* 找到准确名

数据来源与参考

  • Microsoft Learn:RDP 连接事件 1149
  • Microsoft Learn:4624 登录类型 10

相关工具

​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌