Domain Join Error 0xAAC: An Account with the Same Name Exists, Re-using It Was Blocked

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

Quick answer

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.

What you see

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.

Read NetSetup.log

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.

HexDecimalSymbolic nameDescription
0x8b02224NERR_UserExistsThe account already exists.
0xaac2732NERR_AccountReuseBlockedByPolicyAn account with the same name exists in Active Directory. Re-using the account was blocked by security policy.

Both are defined in lmerr.h.

When NetStatus is not 0x0: known issues

Look at the Active Directory Policy check ... returned NetStatus: line. Microsoft documents these cases:

NetSetup.log showsCauseFix
returning NtStatus: c0000022, NetStatus: 5 and policy check returned NetStatus:0x5Since 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:0x32Only 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_FAILUREAfter 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 16997The computer account's owner account was deleted.Re-assigning ownership to another account or group is OK in this case.

Fix: allow trusted owners to re-use accounts

For accounts created by a provisioning or service account you trust, use the allow list instead of weakening the check:

  1. Install the September 12, 2023 or later updates on all member computers and domain controllers.
  2. In a new or existing GPO that applies to all DCs, go to Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options and open Domain controller: Allow computer account re-use during domain join.
  3. Select Define this policy setting and Edit Security, and add the users or groups of trusted computer account creators and owners with Allow. Use groups. Don't add the account that performs the join, and don't add Authenticated Users, Everyone or other large groups.
  4. Wait for the Group Policy refresh or run gpupdate /force on all DCs.
  5. Verify that the ComputerAccountReuseAllowList value under HKLM\System\CurrentControlSet\Control\SAM holds the SDDL you expect. Don't edit it by hand.
  6. Join a computer that has the September 2023 or later updates, making sure an account listed in the policy owns the computer account. If it fails, check netsetup.log again.

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.

What not to do

DC-side events (Directory-Services-SAM, System log)

EventLevelMeaning
16995InformationSAM is using the configured security descriptor (allow list) to validate computer account re-use.
16996ErrorThe allow-list security descriptor is malformed; fix the policy value or disable it.
16997ErrorA computer account appears orphaned: its owner doesn't exist.
16998WarningSAM 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).

Related tools and guides

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.

FAQ

What does error 0xaac mean when joining a domain?

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).

Who is allowed to re-use an existing computer account?

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.

How do I fix An account with the same name exists in Active Directory?

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.

Does the NetJoinLegacyAccountReuse registry key still work?

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.

Which events log a blocked computer account re-use?

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.

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.