Tools / Event IDs / Event ID 4767

Event ID 4767: account unlocked

What Event ID 4767 (account unlocked) means, the fields to check, what is normal and what is suspicious, with PowerShell and KQL queries to find it.

Log: Security · Severity: Informational · Updated 2026-11-03

Event ID 4767 records an account being unlocked after a lockout. Normally that is the helpdesk or self-service. Repeated unlocks of the same account can hide an ongoing password attack.

The fields that matter

FieldWhat it tells you
Target Account > Account NameWho was unlocked.
Subject > Account NameWho unlocked it.

What is normal

Helpdesk unlocks after a user calls.

When Event ID 4767 is suspicious

Common false positive: Users with old passwords on phones or mapped drives get locked out repeatedly; fix the source device.

Find Event ID 4767 with PowerShell

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4767; StartTime=(Get-Date).AddDays(-7)} -MaxEvents 50 |
  ForEach-Object {
    $d = [ordered]@{ Time = $_.TimeCreated; Computer = $_.MachineName }
    ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }
    [pscustomobject]$d
  } | Format-List

Microsoft Sentinel (KQL)

SecurityEvent
| where TimeGenerated > ago(7d) and EventID == 4767
| project TimeGenerated, Computer, Account, Activity, EventData
| order by TimeGenerated desc

Related events

FAQ

How do I find what keeps locking an account?

The Caller Computer Name in event 4740 on the PDC emulator shows which machine sent the bad passwords.