About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
An account that was locked out of Windows can be unlocked, and when it is, the Security log records event 4767: "A user account was unlocked." Our guide to event 4740 covers the other half, the lockout, and how to find the machine that keeps sending a wrong password. Event 4767 answers a different question: who let the account back in, and was that someone who should have?
What follows explains what the event contains, where it is written, how to pair it with the lockout, and what Microsoft says to monitor. Nothing before the Fix section changes anything.
What the error means
Microsoft's page is titled "4767(S): A user account was unlocked." The "S" is, as general knowledge, the mark of a success event. The page puts it in the subcategory Audit User Account Management and describes it this way: "This event generates every time a user account is unlocked." It adds: "For user accounts, this event generates on domain controllers, member servers, and workstations." The minimum operating system is Windows Server 2008 or Windows Vista, and no server role is required.
The fields are two groups, as on the other account-management events:
- Subject: the account that did the unlocking. The page describes the Security ID as the "SID of account that performed the unlock operation", with the Account Name, Account Domain and Logon ID of that account.
- Target Account: the account that was unlocked, with its Security ID ("SID of account that was unlocked"), Account Name and Account Domain.
For both groups the page says Event Viewer tries to resolve the SID to a name, and if it cannot, the source data is shown. The Account Domain can be a NetBIOS name such as CONTOSO, a lowercase full domain name such as contoso.local, or an uppercase one; for local accounts it holds the computer name.
The Logon ID is a hexadecimal value that can help correlate this event with recent events that might contain the same Logon ID. The page's example is event 4624, "An account was successfully logged on."
The page's example shows the account dadmin in CONTOSO unlocking the account Auditor on the computer DC01.contoso.local. In that example the Subject and the Target are different accounts, which fits an administrator unlocking someone else.
Two limits worth stating plainly. The page does not say how the unlock was performed, so the event does not tell you whether the person used a console, a command or a script. And the page does not say whether an unlock that happens by itself, after the lockout duration set in policy runs out, is written as a 4767; the page does not settle that, so neither does the text here.
Likely causes
Microsoft's page does not list causes, because the event is a record of an action. The reasons an account is unlocked, as our own reading and general practice:
| Situation | What the Subject and Target look like | What to ask |
|---|---|---|
| A help-desk administrator unlocks a user who rang in | A named IT account; the Target is the user | Is there a request for this user at this time? |
| An administrator unlocks themselves or a colleague | The Subject and the Target are accounts of the same team | Was the lockout caused by a stale saved password? |
| A tool or script unlocks accounts on a schedule | A service account | Which tool, and why does it exist? |
| Someone with a stolen administrator sign-in unlocks an account that was blocking them | An account used at a strange hour or from a strange machine | Why was the Target locked out in the first place? |
The last row is the one to keep in mind. An account lockout is a defence: it stops repeated wrong guesses. An unlock, by whoever holds the right to do it, switches that defence off. Event 4767 is the record of that action.
Prove the cause before changing anything
Everything in this section only reads.
- In Event Viewer on the computer that logged the event, open Windows Logs and then Security and find event ID 4767. The page says the event is written on domain controllers, member servers and workstations, so look on the computer where the unlock was made; if you do not know which domain controller handled it, check each one (general practice, not a step on the page).
- Write down the Subject (name, domain, Logon ID) and the Target Account (name, domain), plus the time.
- Find the lockout that came before it. Microsoft's page for the User Account Management subcategory lists event 4740, "A user account was locked out", beside 4767 in the same subcategory. Look in the same Security log for a 4740 for the same Target shortly before the unlock. Our guide to 4740 explains how to read it for the source machine.
- Match the unlock to a request. Ask the Subject, or whoever owns that account, whether they unlocked it and for whom. Ask the Target whether they asked.
- Find the sign-in behind the Subject. In the same log, look for event 4624 with the same Logon ID, as the page suggests, and read what that sign-in shows about where it came from (general practice).
- Check what is being audited. The
auditpolcommand page givesauditpol /get /category:*for all categories; it only reads, and it needs Read permission on the policy or the Manage auditing and security log right.
auditpol /get /category:*
Example (illustrative): a receptionist rings the IT provider at 8:50 because her account is locked after a weekend. The domain controller shows a 4740 for her account at 8:41 and a 4767 at 8:52 with the Subject itsupport2. The two events bracket the phone call, the unlock has a request behind it, and Account Keeps Locking Out: Find the Source From Event 4740 to the Process is where to look next for what kept sending the wrong password. If the 4767 had come at 3 on a Sunday morning from an account that no one at the firm uses, it would not have a request behind it.
Fix
The event is not a fault, and Microsoft's page does not tell the reader to change anything. The decisions that follow from it are:
- If the unlock has a request behind it, nothing more is needed.
- If the Target was locked out because of a stale password on a phone, a mapped drive or a service, the unlock does not remove the stale password, so as general experience the lockout can return. The cause belongs to the lockout guide linked above, not to this one.
- If nobody can say who unlocked the account or why, treat the Subject account as one that may be taken over, and read Event 4724: an attempt was made to reset a password for what to ask next. Any step that changes an account is a change with its own record of the current state and a way back.
- If the lockout was real, because someone was guessing at the Target's password, the unlock may have let them continue. Ask whether the sign-in source in the 4740 was known.
Confirm the fix
- The Subject and the Target are named, and both have said whether the unlock was expected.
- The 4767 is matched to a 4740 for the same Target, and the 4740's source has been explained.
- The Target is not locked again within the next day. As general advice, a repeat suggests the cause of the lockout is still there.
- You know where the audit policy for User Account Management is set, and which of its Success and Failure settings are on.
What to watch afterwards
Microsoft's recommendation for this event is short: "We recommend monitoring all 4767 events for local accounts." It is the whole of the page's monitoring advice for 4767, and the Appendix A page adds the general kinds of monitoring that apply to many events, including high-value accounts, accounts that should never be used, an allowlist of accounts permitted to perform the action, and unusual hours.
On that basis:
- Unlocks of local accounts, and especially the built-in Administrator. The User Account Management page says to monitor "all changes related to local user accounts, especially built-in local Administrator and other critical accounts."
- Unlocks by an account that is not in the list of people who may do it.
- An unlock without a lockout before it. If no 4740 can be found, the lockout may have been recorded on another machine, or the log may have been cleared; event 1102, the audit log was cleared, is the second case to rule out.
- The same Target unlocked again and again in a week, which, as general advice, can point to a source of wrong passwords that has not been found.
Read next
Related articles you may want next.
- TroubleshootingAccount Keeps Locking Out: Find the Source From Event 4740 to the ProcessAccount keeps locking out? Read event 4740 on the PDC emulator, follow 4771, 4776 and 4625 to the source computer, then find the stale credential there.Read article
- TroubleshootingReading the sign-in section of a security report: failures, lockouts and what to chaseWhich failed sign-in and lockout patterns matter, which are routine, and how Windows events 4625, 4740 and 4624 help you check a server report.Read article
- TroubleshootingLinux account locked after failed logins: read and reset pam_faillockLinux refuses the right password after failed logins? Read the pam_faillock record, find the source of the failures, then reset one user safely.Read article
Risks and limits
These steps have not been run or lab-tested. The event page sits in Microsoft's previous-versions area, is dated 2021-09-07, and its example is timestamped 2015, so the field layout in your own Event Viewer may differ. The page says nothing about how the unlock was done and does not say whether an unlock after the lockout duration is logged. The table of situations, the pairing with the lockout and the decisions in the Fix section are our own reading and general advice, not statements on Microsoft's pages. One 4767 by a known administrator after a phone call is an ordinary event.
Sources
- 4767(S): A user account was unlocked. — Microsoft Learn, page dated 2021-09-07, accessed 3 December 2026
- Audit User Account Management — Microsoft Learn, page dated 2021-09-06, accessed 3 December 2026
- Appendix A: Security monitoring recommendations for many audit events — Microsoft Learn, page dated 2021-09-06, accessed 3 December 2026
- auditpol get — Microsoft Learn, page dated 2024-11-01, accessed 3 December 2026
This article was originally published on .