1. Resources
  2. Detection sources
  3. Event ID 4722

Event ID 4722: A user account was enabled

Written when a disabled user or computer account is enabled: for domain accounts on domain controllers, for local accounts on member servers and workstations. The source for spotting the built-in Guest account being switched on.

Log source
Windows Security log
Detection value
Supporting
Volume
Low
Last updated
Audit subcategory
Audit User Account Management (Account Management, Success)
Logged on
All Windows computers
Event versions
0
Detects
2 attacks (1 rule · 2 detection logic)
MITRE ATT&CK
2 techniques in 4 tactics
Threat groups
10 groups that MITRE ATT&CK records using these techniques
Fields the rules read
TargetSid

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
Microsoft's recommendation per computer role
ComputerAuditNote
Domain controllersSuccess and FailureMicrosoft'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 serversSuccess and FailureBoth 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.
WorkstationsSuccess and FailureBoth 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.
Check the current setting
auditpol /get /subcategory:"User Account Management"
Based on vendor documentation.
Turn it on (local policy; a domain GPO overrides it)
auditpol /set /subcategory:"User Account Management" /success:enable
Based on vendor documentation.
The same on a Windows in another display language
auditpol /get /subcategory:"{0CCE9235-69AE-11D9-BED3-505054503030}"
Based on vendor documentation.

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.

FieldWhat it holdsSince
Security IDSubjectUserSidSubjectSID of the account that enabled it. Event Viewer resolves it to a name when it can.v0
Account NameSubjectUserNameSubjectName of the account that enabled it.v0
Account DomainSubjectDomainNameSubjectDomain of that account, or the computer name for a local account. NT AUTHORITY for well-known principals such as LOCAL SERVICE.v0
Logon IDSubjectLogonIdSubjectLogon 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 ruleSID 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 AccountName of the account that was enabled.v0
Account DomainTargetDomainNameTarget AccountDomain 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

ValueMeaningSignal
Ends with -501The 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 -500The 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 SIDAn ordinary domain or local accountExpected

Account Name TargetUserName

ValueMeaningSignal
Ends with $A computer accountWritten only on domain controllers.Expected
Any other nameA 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 TargetSid of each event.
  • The Guest account rule matches TargetSid ending 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 SubjectUserSid against 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.

References