Event ID 4722: user account enabled
What Event ID 4722 (user account enabled) means, the fields to check, what is normal and what is suspicious, with PowerShell and KQL queries to find it.
Event ID 4722 records a user account being enabled. Attackers re-enable disabled accounts, such as old admin or service accounts, because they draw less attention than a new account.
The fields that matter
| Field | What it tells you |
|---|---|
| Target Account > Account Name | The account that was enabled. |
| Subject > Account Name | Who enabled it. |
What is normal
New starters enabled by HR or identity tools, and returners from leave.
When Event ID 4722 is suspicious
- Old, privileged or service accounts enabled without a request.
- The built-in Administrator or Guest account enabled.
- Enabling followed quickly by a password reset (4724) and a logon.
Common false positive: Identity management systems enable accounts on start dates in bulk.
Find Event ID 4722 with PowerShell
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4722; 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 == 4722
| project TimeGenerated, Computer, Account, Activity, EventData
| order by TimeGenerated desc
Related events
- Event ID 4725: User account disabled
- Event ID 4724: Password reset by another account
- Event ID 4720: User account created
- Event ID 4738: User account changed
For a full walk-through, read Event ID 4720 and 4732: detect new accounts and admins.
FAQ
Where is 4722 logged?
On domain controllers for domain accounts, and on the local machine for local accounts.
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.