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

Event ID 4743: A computer account was deleted

Written by a domain controller each time a computer account is deleted, with the account that deleted it. The end of the story that 4741 (created) and 4742 (changed) begin; needs no SACL.

Log source
Windows Security log
Detection value
Context
Volume
Low
Last updated
Audit subcategory
Audit Computer Account Management (Account Management, Success)
Logged on
Domain controllers only
Event versions
0
Detects
Not read by our detection rules yet

When it is written

A domain controller writes 4743 each time a computer object is deleted from its domain, whoever deletes it and with whatever tool. Microsoft says only domain controllers write it. Subject is the account that requested the deletion and Target Computer the deleted account, whose name ends with $. No SACL is needed: Audit Computer Account Management (Success) is enough. Microsoft lists it as a success event only.

Deleting a user account is event 4726, under Audit User Account Management. The directory view of the same deletion is 5141, written only when the deleted object has an auditing entry for Delete. A deleted object moves to the Deleted Objects container; it comes back with its attributes only if the Active Directory Recycle Bin was enabled before the deletion, and the restore is written as 5138.

No rule reads 4743 yet. Read it next to the creation (4741) and the changes (4742) of the same account, which the rules read: together they show the whole life of a computer account, including one that was created, used and removed again, and the deletion is often the last trace of an account an investigation is looking for.

How to turn it on

Advanced audit policy subcategory Audit Computer 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 Computer Account Management
Microsoft's recommendation per computer role
ComputerAuditNote
Domain controllersSuccessMicrosoft recommends Success auditing in both its general and stronger baselines and monitoring changes to critical computer objects such as domain controllers, administrative workstations and critical servers, especially their deletion. The subcategory has no failure events.
Member serversNot loggedMicrosoft says the subcategory generates events only on domain controllers.
WorkstationsNot loggedMicrosoft says the subcategory generates events only on domain controllers.
Check the current setting
auditpol /get /subcategory:"Computer Account Management"
Based on vendor documentation.
Turn it on (local policy; a domain GPO overrides it)
auditpol /set /subcategory:"Computer Account Management" /success:enable
Based on vendor documentation.
The same on a Windows in another display language
auditpol /get /subcategory:"{0CCE9236-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 deleted the computer account. Event Viewer resolves it to a name when it can.v0
Account NameSubjectUserNameSubjectName of the account that deleted the computer account.v0
Account DomainSubjectDomainNameSubjectDomain of that account. NT AUTHORITY for well-known principals such as LOCAL SERVICE.v0
Logon IDSubjectLogonIdSubjectLogon ID of the subject's session on this domain controller, in hexadecimal. The logon event (4624) with the same ID shows where the session came from.v0
Security IDTargetSidTarget ComputerSID of the deleted computer account. After the deletion Event Viewer can no longer resolve it, so this is the value to match with the account's earlier events (4741, 4742, logons).v0
Account NameTargetUserNameTarget ComputerName of the computer account that was deleted, its sAMAccountName ending with $, for example WKS117$.v0
Account DomainTargetDomainNameTarget ComputerDomain of the deleted computer account, as a NetBIOS or DNS name.v0
PrivilegesPrivilegeListAdditional InformationPrivileges used for the operation. Usually a dash, because Windows does not always capture them.v0

Values to know

Account Name TargetUserName

ValueMeaningSignal
The account of a domain controllerA domain controller's computer object was deletedMicrosoft's metadata cleanup after a domain controller was forcibly removed deletes its computer account this way, from the Domain Controllers OU. Any other deletion of a domain controller's account should be explained.Worth knowing
An administrative workstation or a critical serverA high-value computer account was deletedMicrosoft recommends monitoring these deletions in particular.Worth knowing
Any other computer accountOrdinary cleanup or decommissioningExpected

Security ID SubjectUserSid

ValueMeaningSignal
A cleanup, provisioning or deployment accountRoutine deletionExpected
The account that created the same computer account (4741) shortly beforeA short-lived computer accountA user who creates a computer account through the machine account quota and removes it again leaves only 4741 and 4743. Find what the account was used for while it existed (4624, 4768, 4769 for its name).Worth knowing
Any other accountA deletion outside the usual accountsFind the right that allowed it on the computer object or its OU.Worth knowing

Volume and noise

Microsoft rates Audit Computer Account Management low on domain controllers. Deletions come from the cleanup of stale computer accounts, the decommissioning of servers, computers rebuilt under a new account, and pools of virtual desktops that remove and recreate their machines. Cleanup jobs can delete many accounts in one run.

Keeping it manageable

  • Keep every 4743: the volume is low, and once the object is gone the event is the record of who removed it.
  • As Microsoft recommends, watch the deletion of critical computer accounts, such as domain controllers, administrative workstations and database servers, by TargetSid or TargetUserName.
  • Pair each 4743 with the 4741 of the same TargetSid. A computer account created and deleted within a short time by an account that is not one of your provisioning or cleanup accounts should be explained.
  • Learn the size and schedule of your cleanup jobs per SubjectUserSid, so that a bulk deletion by any other account stands out.

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>4743</EventID>
    <Version>0</Version>
    <Level>0</Level>
    <Task>13825</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">WKS117$</Data>
    <Data Name="TargetDomainName">CORP</Data>
    <Data Name="TargetSid">S-1-5-21-1004336348-1177238915-682003330-1187</Data>
    <Data Name="SubjectUserSid">S-1-5-21-1004336348-1177238915-682003330-1108</Data>
    <Data Name="SubjectUserName">adm-bob</Data>
    <Data Name="SubjectDomainName">CORP</Data>
    <Data Name="SubjectLogonId">0x4a3f21</Data>
    <Data Name="PrivilegeList">-</Data>
  </EventData>
</Event>

Attacks this event reveals

No detection rule or detection logic in our library reads this event yet. It is documented here because it sits next to the events they read: it explains them, follows from them or is the trace a defender looks for around them (see Related events).

Frequently asked questions

How do I find out who deleted a computer account?

Search 4743 on the domain controllers for the computer's name (TargetUserName) or SID. Subject Security ID and Account Name give the account that deleted it, and Subject Logon ID leads to the logon event (4624) of that session, with the address it came from. The deletion is written only by the domain controller that handled it.

Can a deleted computer account be restored?

With the Active Directory Recycle Bin, a deleted object comes back with its attributes, but only if the Recycle Bin was enabled before the deletion; it is not enabled by default. Microsoft notes that the Recycle Bin recovers only objects deleted after it was enabled. The restore is written as 5138 under Audit Directory Service Changes.

Is 4743 logged on member servers or workstations?

No. Microsoft says the event is generated only on domain controllers, because computer accounts exist only in Active Directory.

References