azureblog.co.uk
← cd ~/events
// events/4740 · Accounts

Event ID 4740A user account was locked out

An account hit the lockout threshold. It is logged on domain controllers, member servers and workstations. Caller Computer Name shows the computer the failed logon attempt came from.

LogSecurity
SourceMicrosoft-Windows-Security-Auditing
AreaAccounts

What to check

Start at the Caller Computer Name to find what is sending bad passwords, and alert when it is a computer the account should not use or one outside your domain.

Find it with PowerShell

Run on the machine that logs it, as an administrator.

powershell2 lines
Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 4740 } -MaxEvents 50 |
    Format-List TimeCreated, Id, Message

Hunt for it in Sentinel or Log Analytics

Security events land in the SecurityEvent table when you collect them with the Windows Security Events connector or a data collection rule.

kql5 lines
SecurityEvent
| where TimeGenerated > ago(7d)
| where EventID == 4740
| project TimeGenerated, Computer, Account, Activity
| order by TimeGenerated desc

Related Accounts events

Search all 123 event IDs →