Skip to content
WETNav
SecurityAccount Management

Event ID 4742: A computer account was changed

A computer account was changed.

Channel
Security
Logged by default
On domain controllers
Written on
Domain controller
Volume
Moderate
Needs a SACL
No

To have this event

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

Key fields

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

TargetUserNameName of the computer account
TargetDomainNameDomain of the computer
TargetSidSID of the computer account
SubjectUserNameAccount that made the change
SubjectDomainNameDomain of the changing account
SubjectLogonIdLogon ID for correlation
UserAccountControlModified account control flags
DnsHostNameDNS hostname
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=4742)]]" -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 4742 mean?
A computer account was changed. It is written to the Windows Security log (Security).
Is event 4742 logged by default?
Only on domain controllers, where the default domain controller policy turns the subcategory on. Elsewhere it must be enabled. It is controlled by the "Computer Account Management" Advanced Audit Policy subcategory (Account Management).
Where is event 4742 recorded?
In the Security channel on the domain controller.

A computer account was changed. Needs the "Computer Account Management" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.