Skip to content
WETNav
SecurityAccount Management

Event ID 4766: An attempt to add SID History to an account failed

An attempt to add SID History to an account failed.

Channel
Security
Logged by default
Yes
Written on
Domain controller
Volume
Low
Audit subcategory
User Account Management
Needs a SACL
No

To have this event

  • Enable User Account Management: auditpol /set /subcategory:"User Account Management" /success:enable /failure:enable

Pull this event

Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.

Get-WinEvent -LogName 'Security' -FilterXPath "*[System[(EventID=4766)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

ATT&CK mapping

Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.

Common questions

What does Windows event ID 4766 mean?
An attempt to add SID History to an account failed. It is written to the Windows Security log (Security).
Is event 4766 logged by default?
Yes, a default Windows installation records it. It is controlled by the "User Account Management" Advanced Audit Policy subcategory (Account Management).
Where is event 4766 recorded?
In the Security channel on the domain controller.

An attempt to add SID History to an account failed. Needs the "User Account Management" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.