首页/系统/Windows 运维速查/4625 登录失败事件与排查

4625 登录失败事件与排查

失败登录的完整答案页:失败原因码、登录类型、来源;排错“密码错误/账户锁定/爆破”全靠它。

Windows 运维速查系统更新于 2026-10-12
关键字段Status/SubStatus 失败码、LogonType、TargetUserName、IpAddress、WorkstationName
常见码0xC000006A 密码错误;0xC0000064 用户不存在;0xC0000234 账户锁定;0xC000006F 时间限制

常用示例

常用示例
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625; StartTime=(Get-Date).AddHours(-24)} | Select-Object TimeCreated, @{n='User';e={$_.Properties[5].Value}}, @{n='Status';e={$_.Properties[7].Value}}, @{n='SubStatus';e={$_.Properties[9].Value}}, @{n='IP';e={$_.Properties[19].Value}}, @{n='Type';e={$_.Properties[10].Value}} | Format-Table -AutoSize
单账号高频失败=旧凭据重试或爆破;多账号扫库=爆破;结合来源 IP 判定内外部。

易错点

  • Status 与 SubStatus 要一起看:前者通用后者具体
  • 服务账户失误的失败是间歇性的,按时间聚合更容易发现节奏

数据来源与参考

  • Microsoft Learn:4625 事件
  • Microsoft Learn:登录失败状态码

相关工具

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