Domain join error 0xaac (2732): an account with the same name exists in AD and re-using it was blocked (KB5020276). Read NetSetup.log, Netjoin 4101 and SAM 16995-16998, fix ownership and set the re-use allow list.
Home › Guides › Domain join error 0xAAC
Last updated 21 November 2026
Error 0xaac (2732, NERR_AccountReuseBlockedByPolicy) means a computer account with the same name already exists in Active Directory and the join was not allowed to re-use it. This is deliberate: Windows updates released on and after October 11, 2022 (CVE-2022-38042) block re-use of an existing computer account unless one of these is true:
Fixes, in Microsoft's order: join with the account that created the computer account; delete the existing account if it is stale; rename the computer and join with a name that doesn't exist; or, if a trusted principal owns the account, add that owner to the allow-list policy.
In Access work or school:
Can't join this domain. Contact your IT admin for more info.
In System Properties:
The following error occurred attempting to join the domain "<domain_name>": An account with the same name exists in Active Directory. Re-using the account was blocked by security policy.
From netdom the same block reads The computer rename attempt failed with error 2732.; from Add-Computer it is Computer '<name>' failed to join domain ... with following error message: An account with the same name exists in Active Directory. Re-using the account was blocked by security policy.
The client also logs Netjoin event 4101 (Error) in the System log:
During domain join, the domain controller contacted found an existing computer account in Active Directory with the same name. An attempt to re-use this account was prevented for security reasons.
When re-use is allowed, Netjoin logs event 4100 (Informational) with An attempt to re-use this account was permitted.
Logging is on by default in C:\Windows\Debug\netsetup.log. The key lines from Microsoft's example on a fully updated system:
NetpGetComputerObjectDn: Crack results: (Account already exists) DN = CN=HOST1,CN=Computers,DC=contoso,DC=com NetpGetADObjectOwnerAttributes: Looking up attributes for machine account: CN=HOST1,CN=Computers,DC=contoso,DC=com NetpCheckIfAccountShouldBeReused: Active Directory Policy check with SAM_DOMAIN_JOIN_POLICY_LEVEL_V2 returned NetStatus:0x0. NetpCheckIfAccountShouldBeReused: Account re-use attempt was Denied by Active Directory Policy. NetpModifyComputerObjectInDs: Account exists and re-use is blocked by policy. Error: 0xaac NetpProvisionComputerAccount: LDAP creation failed: 0xaac NetpManageMachineAccountWithSid: NetUserAdd on 'ContosoDC1.contoso.com' for 'HOST1$' failed: 0x8b0 ... NetpDoDomainJoin: status: 0xaac
Another form of the block names the reason directly: Account was created through joinpriv and does not belong to this user. Blocking re-use of account.
| Hex | Decimal | Symbolic name | Description |
|---|---|---|---|
| 0x8b0 | 2224 | NERR_UserExists | The account already exists. |
| 0xaac | 2732 | NERR_AccountReuseBlockedByPolicy | An account with the same name exists in Active Directory. Re-using the account was blocked by security policy. |
Both are defined in lmerr.h.
Look at the Active Directory Policy check ... returned NetStatus: line. Microsoft documents these cases:
| NetSetup.log shows | Cause | Fix |
|---|---|---|
returning NtStatus: c0000022, NetStatus: 5 and policy check returned NetStatus:0x5 | Since the September 12, 2023 updates, clients make authenticated SAMRPC calls to the DC for the re-use checks; the policy Network access: Restrict clients allowed to make remote calls to SAM blocks them. | Keep the DC's SAMRPC policy at default, or include the group that performs domain joins in its SDDL. |
returning NtStatus: c00000bb, NetStatus: 32 and policy check returned NetStatus:0x32 | Only the client has the March 14, 2023 or later update; the DC check returns 0x32 STATUS_NOT_SUPPORTED. | Install the September 12, 2023 or later updates on all member computers and DCs. |
NetStatus: 5 when targeting a specific DC; the trace shows an SMB logon to the DC with the local user and STATUS_LOGON_FAILURE | After the August 13, 2024 update, only the DNS FQDN form of the DC name works when you target a DC. | Use the FQDN: netdom ... /d:contoso.com\DC1.contoso.com or Add-Computer -Server 'DC1.contoso.com'. |
| Orphaned account; DC logs SAM event 16997 | The computer account's owner account was deleted. | Re-assigning ownership to another account or group is OK in this case. |
For accounts created by a provisioning or service account you trust, use the allow list instead of weakening the check:
gpupdate /force on all DCs.ComputerAccountReuseAllowList value under HKLM\System\CurrentControlSet\Control\SAM holds the SDDL you expect. Don't edit it by hand.The old client-side NetJoinLegacyAccountReuse registry value no longer works: support was removed with the August 13, 2024 updates and the hardening applies regardless of it.
| Event | Level | Meaning |
|---|---|---|
| 16995 | Information | SAM is using the configured security descriptor (allow list) to validate computer account re-use. |
| 16996 | Error | The allow-list security descriptor is malformed; fix the policy value or disable it. |
| 16997 | Error | A computer account appears orphaned: its owner doesn't exist. |
| 16998 | Warning | SAM rejected a re-use request: the computer account and the client identity failed the checks. The NT error code is in the event's record data. |
Other join failures: 0x216D (computer account quota), 0x569 (logon type not granted) and 0x32, 0x54B (DC could not be contacted).
Look up Netjoin 4100 and 4101 and SAM 16995 to 16998 in the Windows Event ID Lookup, copy the Add-Computer -Server, gpupdate /force and reg query lines from the PowerShell Cheat Sheet, pull the NetStatus values out of NetSetup.log with the Regex Tester, check the subnets of the DCs your joins target with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the network adapter vendor on a client that fails to join with the MAC Vendor Lookup. Related guides: domain join error 0x216D, domain join error 0x569 and 0x32, domain join error 0x54B, trust relationship failed and common AD replication errors.
Every AD replication error code with its cause and fix: common Active Directory replication errors.
0xaac is 2732, NERR_AccountReuseBlockedByPolicy. A computer account with the same name exists in Active Directory and the join was blocked from re-using it by the domain join hardening in Windows updates released on and after October 11, 2022 (CVE-2022-38042).
The user who created the account, accounts created by members of Domain Admins, Enterprise Admins or built-in Administrators, and accounts whose owner is listed in the Domain controller: Allow computer account re-use during domain join policy.
Join with the account that created the computer account, delete the existing account if it is stale, rename the computer and join with a new name, or add the trusted owner of the account to the re-use allow-list Group Policy on the DCs.
No. Microsoft removed support for it with the updates released on August 13, 2024. The hardening applies regardless of the key; use the allow-list policy instead.
On the client, Netjoin event 4101 in the System log (4100 when re-use was permitted). On the DC, Directory-Services-SAM events 16995 to 16998, where 16998 means SAM rejected a re-use request and 16997 means the account looks orphaned.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.