Tools / Event IDs / Event ID 4726

Event ID 4726: user account deleted

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

Log: Security · Severity: Medium · MITRE ATT&CK T1531 · Updated 2026-11-03

Event ID 4726 records a user account being deleted. After an intrusion, deleting the account used for access is a way to remove evidence, so a deletion close to suspicious activity deserves attention.

The fields that matter

FieldWhat it tells you
Target Account > Account NameThe deleted account.
Subject > Account NameWho deleted it.

What is normal

Leaver accounts deleted after a retention period.

When Event ID 4726 is suspicious

Common false positive: Scheduled cleanup of old disabled accounts.

Find Event ID 4726 with PowerShell

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4726; 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 == 4726
| project TimeGenerated, Computer, Account, Activity, EventData
| order by TimeGenerated desc

Related events

FAQ

Can I still investigate a deleted account?

Yes. Its SID still appears in older events, and with the AD Recycle Bin you can restore it with its group memberships.