Technical Anshu
Tutorials Blog
🔐 Lockout Detective

Account Keeps Locking Out Find the Cause with Event 4740

You unlock the account. Twenty minutes later it is locked again. Something on the network is still offering the old password — and Windows has already written down exactly which computer it is. You just have to read Event 4740.

✍️ Technical Anshu🪟 Windows Server / Windows 10 / 11⏱️ 9 minute read
🎥 Watch the full video — Windows account lockout policy and all 3 recovery methods, demonstrated step by step

Repeat lockouts follow a script: the user changed their password, and something somewhere still knows the old one — a phone, a mapped drive, a scheduled task, a service, a second PC they used once in March. Every one of those retries counts as a failed logon, the counter climbs, and the account locks again. Unlocking without investigating guarantees a repeat performance. This page is the detective order: start on the domain controller, where Event 4740 names the guilty machine, then hunt that machine's hiding places one by one. Do this once, properly, and the lockouts stop for good.

Event Viewer — Security log, Event ID 4740 on the domain controller
A user account was locked out. Subject: Security ID: SYSTEM Account Name: DC01$ Target Account: Account Name: ravi.kumar Additional Information: Caller Computer Name: DESKTOP-SALES02
👆 The field that solves the case — Caller Computer Name tells you which machine presented the bad passwords (event recreated with the real 4740 wording; names are examples)
1

Step 1 — Read Event 4740 and Note the Caller Computer

Every lockout on a domain writes Event 4740 into the Security log of the domain controller that processed it — and the PDC emulator is the most reliable place to look, because lockout processing centres there.

  1. Open Event Viewer on the DC (or the PDC), Security log, and filter for Event ID 4740.
  2. Open the newest event for your user and copy the Caller Computer Name — that is the machine that sent the bad passwords. It is frequently not the user's own desk PC.
  3. Note the exact time. You will correlate it with logs on the caller machine in the next step.

No event found? Auditing may be off — account lockout auditing must be enabled for 4740 to exist. That setup has its own page here; switch it on today so the next lockout explains itself.

2

Step 2 — Use LockoutStatus to See the Whole Domain at Once

Each domain controller keeps its own bad-password count for an account, which confuses admins who check one DC, see "not locked", and declare the user mistaken. Microsoft's classic LockoutStatus tool (from the Account Lockout and Management Tools) ends the argument: it lists every DC, each one's bad password count, and the lockout time for the account in a single grid. Use it to confirm which DC locked the account and when — then match that timestamp against Event 4625 (failed logon) entries. In 4625, the Logon Type is your biggest clue: type 3 means a network logon (drive mapping, file share), type 5 a service starting, type 4 a scheduled task, and type 10 an RDP session. The logon type alone often names the culprit category before you leave your chair.

3

Step 3 — Hunt the Caller Machine, in This Order

Now go to the machine named in Event 4740 and check the usual hiding places, most common first:

  1. Credential Manager — open control /name Microsoft.CredentialManager and look for saved Windows credentials for servers and shares with the old password. Delete the stale entries.
  2. Mapped drives — drives mapped with "reconnect at sign-in" and a saved alternate password retry silently at every logon. Disconnect and remap with current credentials.
  3. Services and scheduled tasks — anything running as the user's account keeps using the password it was configured with. A task failing every 15 minutes explains a lockout every 15 minutes beautifully.
  4. Open sessions — run net use and look for remembered connections to file servers; net use * /delete clears them.
  5. The user themselves — an old RDP file with saved credentials, a browser-saved portal login being auto-submitted, or a second PC at a branch office still signed in as them.
4

Step 4 — Do Not Forget the Phone in Their Pocket

The single most missed cause in real offices: the user's phone or tablet still holds the old mailbox password. Mail apps retry patiently, forever, at intervals — so lockouts return like clockwork, including at night and on weekends when the user swears they "did nothing". The pattern is your tell: lockouts at regular intervals, caller computer pointing at the mail server or a generic device name, continuing outside office hours. The fix is embarrassingly small: update the password in every mail and Wi-Fi profile on every mobile device the person owns (corporate Wi-Fi with domain credentials counts too — a phone auto-joining office Wi-Fi with an old password locks accounts just as reliably as email). Then unlock once, watch the account for a full day, and close the case properly.

⚠️ The rule of repeat lockouts: unlock once as a courtesy — but if it happens a second time, investigate before unlocking a third. Repeated lockouts are evidence of a stale credential somewhere, and occasionally of a genuine attack. Either way, the answer is in the logs, not in another unlock.

🎥 See the Lockout Recovery Methods in the Video

The complete lockout policy walkthrough and all 3 recovery methods, shown live on a real Windows system — this is the video this guide is based on.

▶️ Watch Full Video
❓ Frequently Asked Questions

Which event ID shows that an account was locked out?

Event 4740 in the Security log of the domain controller that processed the lockout. Its most useful field is Caller Computer Name — the machine that presented the bad passwords. It only exists if account lockout auditing is enabled.

The caller computer in Event 4740 is blank or shows the mail server. What then?

Follow the chain one hop further: check that server's failed-logon events (4625) around the same time to find the original device or IP. For mail servers, the culprit is usually a phone or tablet still using the old password.

What is LockoutStatus and do I still need it?

LockoutStatus is Microsoft's small tool that shows an account's lockout state and bad-password count on every domain controller at once. It remains the quickest way to end the 'locked on one DC, fine on another' confusion, and it pairs with Event 4740 to pinpoint both the time and the source of a lockout.

This guide is based on the Technical Anshu Windows Account Lockout Policy video • Stuck on a step? Ask in the video comments — you will get a reply 🙏