When it is written
Windows writes 4722 each time a disabled account is enabled. For user accounts, domain controllers write it for domain accounts and member servers and workstations write it for their local accounts. For computer accounts, only domain controllers write it. Microsoft lists it as a success event only.
The event is short: Target Account names the account that was enabled, Subject the account that enabled it, with the logon session it used. Nothing else about the account is recorded.
How to turn it on
Advanced audit policy subcategory Audit User Account Management, Success. Set it in a Group Policy object linked to the computers that write the event:
Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Account Management > Audit User Account Management| Computer | Audit | Note |
|---|---|---|
| Domain controllers | Success and Failure | Microsoft's general and stronger baselines both recommend Success and Failure auditing. Microsoft calls the subcategory useful for watching critical domain accounts (domain admins, service accounts, database admins) and recommends Failure auditing mainly for invalid password change and reset attempts on domain accounts, failed changes of the DSRM password and failed SID History additions. |
| Member servers | Success and Failure | Both baselines recommend Success and Failure auditing. Microsoft recommends watching every change to local user accounts, especially the built-in local Administrator and other critical accounts, and Failure auditing mainly for invalid password change and reset attempts on local accounts. |
| Workstations | Success and Failure | Both baselines recommend Success and Failure auditing. Microsoft recommends watching every change to local user accounts, especially the built-in local Administrator and other critical accounts, and Failure auditing mainly for invalid password change and reset attempts on local accounts. |
auditpol /get /subcategory:"User Account Management"auditpol /set /subcategory:"User Account Management" /success:enableauditpol /get /subcategory:"{0CCE9235-69AE-11D9-BED3-505054503030}"Run the commands in an elevated prompt on a computer that writes the event. Subcategory settings take effect only when the security option Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings is enabled (the default), and a Group Policy object that sets advanced audit policy replaces local changes at its next refresh. Microsoft's advanced audit policy reference
Fields
In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.
| Field | What it holds | Since |
|---|---|---|
Security IDSubjectUserSidSubject | SID of the account that enabled it. Event Viewer resolves it to a name when it can. | v0 |
Account NameSubjectUserNameSubject | Name of the account that enabled it. | v0 |
Account DomainSubjectDomainNameSubject | Domain of that account, or the computer name for a local account. NT AUTHORITY for well-known principals such as LOCAL SERVICE. | v0 |
Logon IDSubjectLogonIdSubject | Logon ID of the session that made the change, in hexadecimal. The logon event of that session (4624) on the same computer carries the same value. | v0 |
Security IDTargetSidTarget AccountRead by 1 rule | SID of the account that was enabled. Event Viewer resolves it to a name when it can. Its last part is the relative identifier (RID), 501 for the built-in Guest account. | v0 |
Account NameTargetUserNameTarget Account | Name of the account that was enabled. | v0 |
Account DomainTargetDomainNameTarget Account | Domain of that account, as a NetBIOS or DNS name. For a local account, the name of the computer it belongs to. | v0 |
Values to know
Security ID TargetSid
| Value | Meaning | Signal |
|---|---|---|
Ends with -501 | The built-in Guest accountDisabled by default with a blank password, according to Microsoft. Enabling it gives a working account without creating a new one. The Guest account rule looks for this RID. | Attack signal |
Ends with -500 | The built-in Administrator accountWorth a look on computers where it is kept disabled. Match it by SID because it can be renamed. | Worth knowing |
Any other SID | An ordinary domain or local account | Expected |
Account Name TargetUserName
| Value | Meaning | Signal |
|---|---|---|
Ends with $ | A computer accountWritten only on domain controllers. | Expected |
Any other name | A user accountOn a member server or workstation it is a local account of that computer (see TargetDomainName). | Expected |
Volume and noise
Microsoft rates the volume of the subcategory as low. Ordinary sources are new accounts enabled once their setup is finished, accounts re-enabled by the help desk after leave or an investigation, identity management tools, and computer accounts enabled again by administrators. Local accounts on servers and workstations change rarely, which is why Microsoft recommends watching every 4722 for them.
Keeping it manageable
- Keep every 4722: the volume is low and the Guest account rule needs
TargetSidof each event. - The Guest account rule matches
TargetSidending in -501, so renamed and localized Guest accounts are covered. Exclude only the computers (kiosk or lab machines) on which the local Guest account is enabled on purpose; for the Guest account of a domain there is no routine reason. - Keep a list of accounts that should never be enabled (retired administrators, break-glass accounts outside an emergency) and alert on their
TargetSid, as Microsoft suggests. - Alert on every 4722 for local accounts on critical servers and administrative workstations, as Microsoft recommends, and review domain enablings per
SubjectUserSidagainst your help desk and provisioning accounts.
Sample event
Version 0, with made-up values.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" />
<EventID>4722</EventID>
<Version>0</Version>
<Level>0</Level>
<Task>13824</Task>
<Opcode>0</Opcode>
<Keywords>0x8020000000000000</Keywords>
<TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
<EventRecordID>1048576</EventRecordID>
<Correlation />
<Execution ProcessID="712" ThreadID="2408" />
<Channel>Security</Channel>
<Computer>DC01.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="TargetUserName">bob</Data>
<Data Name="TargetDomainName">CORP</Data>
<Data Name="TargetSid">S-1-5-21-1004336348-1177238915-682003330-1121</Data>
<Data Name="SubjectUserSid">S-1-5-21-1004336348-1177238915-682003330-1104</Data>
<Data Name="SubjectUserName">adm-alice</Data>
<Data Name="SubjectDomainName">CORP</Data>
<Data Name="SubjectLogonId">0x3a7f21</Data>
</EventData>
</Event>Attacks this event reveals
Detection rules that read this event:
Detection logic (hypotheses that join this event with others) for:
Frequently asked questions
Why alert when the Guest account is enabled?
Every domain and every Windows computer has a Guest account (RID 501). Microsoft documents it as disabled by default with a blank password, and as a security risk because it can give anonymous access. Enabling it gives someone a working account without creating one, so tools that watch for new accounts do not see it.
Is 4722 written for computer accounts?
Yes, but only on domain controllers. Microsoft lists 4722 among the events of this subcategory that are also written for computer accounts.
Who enabled the account?
`SubjectUserName` and `SubjectUserSid`. `SubjectLogonId` matches the logon event (4624) of that session on the same computer, which shows how and from where that account logged on.