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.
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
| Field | What it tells you |
|---|---|
| Target Account > Account Name | The deleted account. |
| Subject > Account Name | Who deleted it. |
What is normal
Leaver accounts deleted after a retention period.
When Event ID 4726 is suspicious
- An account created (4720) and deleted within a short window.
- Deletion of privileged or service accounts without a change.
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
- Event ID 4720: User account created
- Event ID 4725: User account disabled
- Event ID 4743: Computer account deleted
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.
Windows Event Triage reads a CSV, EVTX-to-JSON or XML export in your browser and flags brute force, new admins, suspicious services and log clearing.
IOC Triage, our free browser extension: right-click it for a verdict from 15 threat-intel sources, then copy a ready ticket note.