Skip to content
WETNav
SecurityDS Access

Event ID 5137: A directory service object was created

A directory service object was created.

Channel
Security
Logged by default
No
Written on
Domain controller
Volume
Low
Audit subcategory
Directory Service Changes
Needs a SACL
Yes

To have this event

  • Enable Directory Service Changes: auditpol /set /subcategory:"Directory Service Changes" /success:enable /failure:enable

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

SubjectUserNameAccount that created the AD object
SubjectDomainNameDomain of the account
SubjectLogonIdLogon ID for correlation
DSNameDirectory service name
DSTypeDirectory service type
ObjectDNDistinguished name of the created object
ObjectGUIDGUID of the new object
ObjectClassClass of the object (user, group, computer, etc.)
Have one of these events? Paste it into the decoder

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=5137)]]" -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 5137 mean?
A directory service object was created. It is written to the Windows Security log (Security).
Is event 5137 logged by default?
No. It must be enabled before it is recorded. It is controlled by the "Directory Service Changes" Advanced Audit Policy subcategory (DS Access). It also requires a SACL on the audited object.
Where is event 5137 recorded?
In the Security channel on the domain controller.

A directory service object was created. Needs the "Directory Service Changes" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.