When it is written
Windows writes 4725 each time an account is disabled. 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 names the disabled account (Target Account) and the account that disabled it (Subject), nothing else. A disabled account cannot sign in until it is enabled again (4722). A lockout after failed logons is a different state with its own event, 4740.
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 disabled it. Event Viewer resolves it to a name when it can. | v0 |
Account NameSubjectUserNameSubjectRead by 1 rule | Name of the account that disabled it. The mass disabling rule groups by this field. | 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 Account | SID of the account that was disabled. Event Viewer resolves it to a name when it can. | v0 |
Account NameTargetUserNameTarget AccountRead by 1 rule | Name of the account that was disabled. Computer accounts end with $. | 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
Account Name SubjectUserName
| Value | Meaning | Signal |
|---|---|---|
Same account for many targets within minutes | Bulk disabling by one accountThe mass disabling rule counts 10 or more distinct user accounts in 10 minutes, a starting value. Either a cleanup job or an attacker removing access before or during a destructive attack. | Attack signal |
A provisioning or lifecycle account | Routine offboardingLearn its usual run size and schedule before tuning. | Expected |
Account Name TargetUserName
| Value | Meaning | Signal |
|---|---|---|
Ends with $ | A computer accountWritten only on domain controllers. Not counted by the mass disabling rule. | Expected |
Any other name | A user accountCounted by the mass disabling rule. A service account or an administrator account deserves a look on its own. | Expected |
Volume and noise
Microsoft rates the volume of the subcategory as low. Ordinary sources are offboarding, cleanup of stale accounts, identity management and lifecycle tools, and administrators disabling computer accounts of retired machines. Such jobs can disable many accounts in one run, which is what the mass disabling rule has to be tuned against.
Keeping it manageable
- Keep every 4725: the mass disabling rule counts the distinct accounts one
SubjectUserNamedisables in 10 minutes, and filtering events at collection time breaks it. Computer accounts are already left out by the rule (names ending with$). - Measure what your own offboarding and cleanup jobs produce per
SubjectUserSidand set the threshold above it, or give those accounts a higher threshold, rather than excluding them. - Keep a list of accounts that must never be disabled, such as service accounts, and alert on any 4725 for their
TargetSid, as Microsoft suggests. - Microsoft recommends watching every 4725 for local accounts on critical servers and administrative workstations, because local accounts rarely change.
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>4725</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:
Frequently asked questions
How do I spot mass account disabling?
Count, per `SubjectUserName`, the distinct `TargetUserName` values in 4725 over a short window. The library's rule alerts at 10 or more user accounts in 10 minutes as a starting point, and leaves out computer accounts. Compare the result with your offboarding and cleanup jobs, and read 4726 (deletions) and 4724 (resets by another account) for the same subject, which serve the same goal.
Is 4725 written for computer accounts?
Yes, but only on domain controllers. Microsoft lists 4725 among the events of this subcategory that are also written for computer accounts.
Is a locked-out account the same as a disabled one?
No. A disabled account stays unusable until someone enables it (4722). A lockout is set by Windows after failed logon attempts, written as 4740, and ends when an administrator unlocks the account or the lockout duration expires.