When it is written
A domain controller writes 16990 when the Security Accounts Manager refuses to create or change an account because its object class and its account type flags in userAccountControl do not match. Since the Windows updates of November 9, 2021 (CVE-2021-42278), Active Directory checks that an object of class computer, or of a class derived from it, carries the workstation trust account or the server trust account flag, and that an object of class user carries the normal account or the interdomain trust account flag. A request that fails the check gets an access denied error and the event is logged.
The check applies only to users who do not have administrator rights for machine accounts. For existing objects it runs when such a user changes sAMAccountName or userAccountControl. A change by an administrator is neither checked nor logged here; event 4742 or 4738 in the Security log records it.
The event names the account, its object class, the userAccountControl value that was refused, and the address and SID of the caller.
How to turn it on
Microsoft-Windows-Directory-Services-SAM writes the event to the System log (Event Viewer > Windows Logs > System), which is on by default. Microsoft
There is nothing to switch on: domain controllers with the Windows updates released on November 9, 2021 or later run the check and write the event to the System log. To find accounts that already break the rule (created before the updates or by administrators), Microsoft gives a read-only query for computer objects with the normal account flag:
Get-ADComputer -LDAPFilter "(UserAccountControl:1.2.840.113556.1.4.803:=512)"
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 |
|---|---|---|
Account name | Name of the account that was being created or changed, as requested. | v0 |
Account objectClass | Object class of that account, for example computer or user. The check compares it with the account type flags. | v0 |
userAccountControluserAccountcontrol | userAccountControl value that was refused, in decimal (shown as userAccountControl). It is a sum of flags: the account type flag is one of 512, 2048, 4096 or 8192, and other flags (for example 32, password not required) can be added to it. | v0 |
Caller address | Network address of the client that sent the request. Microsoft does not document its format. | v0 |
Caller SID | SID of the account that made the request, a user without administrator rights for machine accounts. Event Viewer may resolve it to a name. | v0 |
Values to know
userAccountControl userAccountcontrol
| Value | Meaning | Signal |
|---|---|---|
4096 (0x1000) | WORKSTATION_TRUST_ACCOUNTThe account type of a computer. Refused when the object is a user: an attempt to make a user object a computer account. | Attack signal |
8192 (0x2000) | SERVER_TRUST_ACCOUNTThe account type of a domain controller. Refused when the object is a user: an attempt to give it the type of a domain controller account. | Attack signal |
512 (0x200) | NORMAL_ACCOUNTThe account type of a user. Refused when the object is a computer. | Worth knowing |
2048 (0x800) | INTERDOMAIN_TRUST_ACCOUNTThe account type of a trust account, allowed only on user objects. | Worth knowing |
Account objectClass
| Value | Meaning | Signal |
|---|---|---|
computer | A computer object or a class derived from itMust carry the workstation trust or server trust flag. | Worth knowing |
user | A user objectMust carry the normal account or interdomain trust flag. A user object refused with a computer or domain controller flag is the attack case. | Worth knowing |
Volume and noise
Rare. By default authenticated users can create up to 10 computer accounts in the domain, so the requests the check sees come from ordinary users and from provisioning tools and scripts running as non-administrators. A tool that writes a userAccountControl value that does not fit the object class fails every time on an updated domain controller, and the event repeats for each attempt until the tool is fixed.
Keeping it manageable
- Keep every 16990: the volume is low and the rule matches only the event ID and the
Directory-Services-SAMprovider. Collect the System log of every domain controller, since only the one that handled the request logs it. - Group by
Caller SIDandCaller address: a provisioning tool shows as the same caller over and over with the same values; a single user account or a workstation address is the case to look at. - Look at the pair of
Account objectClassanduserAccountcontrol: a user object given a computer or domain controller account type is the request the check exists to stop.
Sample event
Version 0, with made-up values.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Directory-Services-SAM" Guid="{0d4fdc09-8c27-494a-bda0-505e4fd8adae}" />
<EventID>16990</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
<EventRecordID>1048576</EventRecordID>
<Correlation />
<Execution ProcessID="712" ThreadID="2408" />
<Channel>System</Channel>
<Computer>DC01.corp.example.com</Computer>
<Security />
</System>
<EventData>
<Data Name="Account name">kiosk07</Data>
<Data Name="Account objectClass">user</Data>
<Data Name="userAccountcontrol">4096</Data>
<Data Name="Caller address">10.20.30.41</Data>
<Data Name="Caller SID">S-1-5-21-1004336348-1177238915-682003330-1105</Data>
</EventData>
</Event>Attacks this event reveals
Detection rules that read this event:
Frequently asked questions
What does event 16990 mean?
A domain controller refused to create or change an account whose object class and account type flags do not match, for example a user object with the computer or domain controller account type. Since the November 2021 updates for CVE-2021-42278, computer objects must be workstation or server trust accounts and user objects normal or interdomain trust accounts, for requests from users without administrator rights for machine accounts.
Why is event 16990 not logged when an administrator makes the same change?
Microsoft applies the check only to users who do not have administrator rights for machine accounts. Changes by administrators are not checked, so they are not refused and not logged here. Watch them in the Security log with events 4741, 4742 and 4738.
How do I find accounts that already have a mismatched type?
Microsoft gives read-only PowerShell queries in KB5008102, such as Get-ADComputer with an LDAP filter for computer objects that carry the normal account flag (512). Accounts created before the update, or by administrators, are not checked retroactively; the check runs only when such a user later changes sAMAccountName or userAccountControl.