Account lockout event ID 4740: a user account was locked out

The account lockout event ID is 4740, "A user account was locked out". Windows writes it to the Security log when an account passes the lockout threshold of failed logons, and its Caller Computer Name field names the computer the failed attempts came from.

Security logAccounts and groupsChecked 1 December 2026

What event 4740 records

An account locks out when the number of failed logons within the observation window reaches the lockout threshold set by policy. At that moment Windows writes one 4740: the locked account and, crucially, the Caller Computer Name, which is the computer whose failed attempts tipped it over.

For domain accounts, the domain controller that handled the last bad password forwards it to the PDC emulator, so the PDC emulator's Security log holds every domain lockout. That is the first place to look. For local accounts, the event is on the computer itself.

How to find the source of an account lockout

  • Find the 4740 for the account on the PDC emulator (or the domain controller nearest the user). Note the time and the Caller Computer Name.
  • If the caller is a workstation or server, look in its Security log for 4625 failures for that account just before the lockout. The Caller Process Name and Logon Type in 4625 point to the cause: a service, a scheduled task, a mapped drive, an application or a person.
  • If the caller is a domain controller or a mail server, the failures were relayed. Look at the domain controllers' 4771 (Kerberos) and 4776 (NTLM) events for the client address, or the mail server's logs for the device.
  • If the Caller Computer Name is blank, the source did not identify itself; use the 4771 client address instead.

Common causes

CauseHow it looks
A phone or tablet syncing mail with an old passwordCaller is the mail or ActiveSync server; failures recur every few minutes
A service or scheduled task with a changed passwordCaller is a server; 4625 Caller Process Name is the service executable or svchost.exe
Mapped drives or saved credentialsCaller is the user's own workstation, often at logon time
A disconnected RDP session still holding old credentialsCaller is a terminal server or another workstation the user used
Password guessing or sprayingCaller is unfamiliar, failures are fast, and several accounts lock out from the same source

Lockout policy in brief

Three settings decide when lockouts happen: the threshold (failed attempts), the observation window (how long failures are counted) and the lockout duration (how long the account stays locked, or until an administrator unlocks it). Domain policy sets them for domain accounts. Since Windows 11 version 22H2, new installations also apply a local lockout policy by default (10 failed attempts, 10-minute lockout), so local accounts on workstations can now lock out too.

A lockout that lasts a fixed time and then clears itself is the duration at work. Asking how to "disable the lockout" is asking to remove a control against password guessing; shortening the duration or fixing the source of the failures is the better answer.

Lockouts and the PDC emulator

Bad password counts for domain accounts are kept per domain controller and forwarded to the PDC emulator, which makes the final lockout decision for the domain. That is why the PDC emulator's Security log is the most complete source of 4740 events. To find which domain controller holds the PDC emulator role, run netdom query fsmo or check the domain's properties in Active Directory Users and Computers. In multi-domain forests, each domain has its own PDC emulator.

The account's current bad password count and last bad password time are also stored per domain controller in Active Directory (badPwdCount, badPasswordTime), which helps when the 4740 has rolled out of the log.

Stopping repeat lockouts

  • Fix the source rather than unlocking repeatedly: update or remove the stored password on the caller computer (service, task, drive mapping, saved RDP connection, phone).
  • Log off disconnected RDP sessions that still hold the user's old credentials.
  • If a single source locks out many accounts and is not yours, block it and treat it as an incident: check those accounts for successful logons from the same source.
  • Keep the lockout policy. A short lockout duration (for example 15 minutes) limits disruption while still slowing guessing.

Repeated lockouts of the same account from the same caller within hours of a password change are nearly always a stale credential. Lockouts of several unrelated accounts within minutes are nearly always guessing.

Lockouts on Windows 11 workstations

Because Windows 11 22H2 and later apply a local lockout policy by default, a password-guessing attack against a workstation's local accounts can now produce a local 4740 on the workstation itself. If a workstation's Security log shows a burst of 4625 for a local account but no 4740, check its local policy and the built-in Administrator's lockout setting before concluding anything: some images and policies change these defaults.

An example lockout investigation

A help desk ticket says a finance user is locked out every morning. The PDC emulator's 4740 events show the Caller Computer Name as a file server. On the file server, 4625 failures for the user arrive every five minutes with logon type 4 (batch) and Caller Process Name taskhostw.exe: a scheduled task created years ago under the user's account still has the old password. Updating the task ends the lockouts. Had the caller been an unfamiliar workstation and the failures arrived in a burst across several accounts, the same three steps would have pointed to an attack instead.

Event 4740 fields

The fields an investigator reads first, what they mean, and where Arcsentry stores them.

FieldMeaningArcsentry field
Subject: Security ID, Account NameThe account that performed the lockout: the domain controller's computer account or SYSTEM, not a person.event data
Account That Was Locked Out: Security ID, Account NameThe locked account.user_target_name
Caller Computer NameThe computer the failed logons came from. Stored in the event data as TargetDomainName.event data

In Arcsentry the caller computer is readable as user_target_domain (the field Windows uses for it in the event data).

What event 4740 proves, and what it does not

It shows

  • That the account reached the lockout threshold at this time.
  • Which computer the last failed attempts came from, if it identified itself.

It does not show

  • That the lockout was an attack; stale passwords are the usual cause.
  • Every source of failures. Only the source of the final attempt is named; check 4625, 4771 and 4776 for the others.

Attacker activity it reveals

Lockouts from spraying or guessing

Several accounts locked out from one caller in a short time, or lockouts for accounts nobody uses, point to an attack. Check whether any targeted account then logged on successfully from the same source. MITRE ATT&CK T1110

Lockouts as disruption

Deliberate lockouts of administrators or service accounts can be used to slow responders down or break services. MITRE ATT&CK T1531

An attacker keeping under the threshold

Careful attackers spray slowly to avoid lockouts, so no 4740 does not mean no guessing. Read 4625, 4771 and 4776 regardless.

Finding event 4740 in Arcsentry

Arcsentry parses every channel in Windows\System32\winevt\Logs, whether it comes from an Arcsentry Collector archive, a KAPE or Velociraptor collection, or a disk image. Security log records are the event type evtx_security. In Hunt, with that event type selected:

filter event_code == "4740"
derive {caller = user_target_domain}
group {caller} (aggregate {accounts = (dcount user_target_name), lockouts = count this, first_seen = (earliest timestamp), last_seen = (latest timestamp)})
sort {-accounts}

Lockouts per caller computer, with the number of distinct accounts. One caller locking out many accounts is an attack or a badly configured system; either way it is the first thing to fix. Run on the PDC emulator's Security log for domain accounts.

Or ask in plain English, for example "show event 4740 on every host, oldest first", and Arcsentry shows the AQL it wrote before it runs. The AQL reference lists the operators used here, and the AI investigator reads the same events, citing each one by its event ID when it reports a finding.

Related event IDs

All events by investigation question: Windows security event IDs for incident response. Logon types in full: Windows logon types. The log files themselves: Windows event logs.

Frequently asked

What is the event ID for an account lockout?

4740, "A user account was locked out", in the Security log. For domain accounts it is on the PDC emulator and the domain controller that processed the failure; for local accounts, on the computer itself.

How do I find the source of an account lockout?

Read the Caller Computer Name in the 4740 event. Then look on that computer for 4625 failures for the account just before the lockout; the Caller Process Name and Logon Type show whether a service, task, drive mapping, application or person caused it. If the caller is a domain controller or mail server, use the 4771 and 4776 client details instead.

How long does an account lockout last?

As long as the lockout duration in the account lockout policy, or until an administrator unlocks the account if the duration is 0. Windows 11 22H2 and later default to 10 minutes for local accounts on new installations; domain policy decides for domain accounts.

What event ID shows an account was unlocked?

4767, "A user account was unlocked", written when an administrator unlocks it. Automatic unlocks at the end of the lockout duration are not logged as a separate event.

Sources

  • Microsoft Learn: 4740(S) A user account was locked out
  • Microsoft Learn: Account lockout threshold; Account lockout policy
  • MITRE ATT&CK: T1110 Brute Force; T1531 Account Access Removal

Checked 1 December 2026 by Venema Labs against Microsoft's audit documentation and, where an example is shown, the named lab case. Field availability varies by Windows version.

Find event 4740 across every host in minutes.

Load your collections, ask what happened, and check every finding against the event behind it. Free for 7 days.

Request a trial