Tools / Event IDs / Event ID 4742

Event ID 4742: computer account changed

What Event ID 4742 (computer account changed) means, the fields to check, what is normal and what is suspicious, with PowerShell and KQL queries to find it.

Log: Security · Severity: Low · MITRE ATT&CK T1098 · Updated 2026-11-03

Event ID 4742 records a change to a computer account. Most are routine: password changes every 30 days, DNS host name updates. The ones that matter change delegation, account control flags or the account name, because those are the levers for privilege escalation through Kerberos delegation and the noPac attack.

The fields that matter

FieldWhat it tells you
Computer Account That Was ChangedWhich computer.
Subject > Account NameWho made the change. The computer itself (NAME$) for routine updates.
Changed AttributesOnly changed values are shown; - means unchanged.
AllowedToDelegateToConstrained delegation targets. New entries let the computer impersonate users to those services.
User Account ControlFlags such as "Trusted For Delegation" (unconstrained delegation).
SAM Account NameA rename. In noPac the name is changed to a DC's name without the $.

What is normal

Changes made by the computer itself (password and DNS updates), and admin changes that match tickets.

When Event ID 4742 is suspicious

Common false positive: Machine password rotations appear as 4742 with only Password Last Set changed. Filter those out.

Find Event ID 4742 with PowerShell

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4742; StartTime=(Get-Date).AddDays(-7)} -MaxEvents 50 |
  ForEach-Object {
    $d = [ordered]@{ Time = $_.TimeCreated; Computer = $_.MachineName }
    ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }
    [pscustomobject]$d
  } | Format-List

Microsoft Sentinel (KQL)

SecurityEvent
| where TimeGenerated > ago(7d) and EventID == 4742
| project TimeGenerated, Computer, Account, Activity, EventData
| order by TimeGenerated desc

Related events

FAQ

Does 4742 show resource-based constrained delegation changes?

Not directly. RBCD is set in msDS-AllowedToActOnBehalfOfOtherIdentity, which shows up in event 5136 when directory service change auditing is on.