Promoting a DC fails with The attempt to join this computer to the domain failed. The specified user already exists (0x80070524): a computer account with the same name exists. Clean up metadata, find the helper DC in dcpromoui.log.
Home › Guides › AD DS install: specified user already exists
Last updated 20 November 2026
Promoting a server to a domain controller fails with "The attempt to join this computer to the <domain> domain failed. The specified user already exists." because Active Directory already has a computer account with the same name as the server you're promoting. The underlying error is 0x80070524: 0x524 hex, 1316 decimal, ERROR_USER_EXISTS.
The usual story: the server has the name of a domain controller that used to exist in the domain, and that old DC's metadata was never removed. Fix it in three steps:
%systemroot%\debug\dcpromoui.log to find the helper DC the new server is really talking to.The Active Directory Domain Services installation stops with:
Error Joining Domain The operation failed because: The attempt to join this computer to the <target DNS domain> failed. The specified user already exists.
And %systemroot%\debug\DCPROMOUI.LOG contains:
dcpromoui Enter ComposeFailureMessage dcpromoui Enter GetErrorMessage 80070524 dcpromoui Enter State::GetOperationResultsMessage The attempt to join this computer to the <target DNS domain> domain failed. dcpromoui Enter State::GetOperationResultsFlags 0x0 dcpromoui Enter State::SetFailureMessage The operation failed because: The attempt to join this computer to the <target DNS domain> domain failed. "The specified user already exists."
"User" is misleading here: the account that already exists is a computer account with the new DC's name.
If a domain controller with this name existed before, its metadata (computer account and NTDS Settings object) is probably still in Active Directory. Remove it with metadata cleanup. Two ways, both covered with full steps in event 2087:
ntdsutil "metadata cleanup" "remove selected server cn=<OldDC>,cn=Servers,cn=<site>,cn=Sites,cn=Configuration,dc=<forest root>" quit quit
For best results, run the cleanup on a domain controller in the same domain and site the new DC is joining, or on the helper DC named in the installation wizard or answer file.
If installation still fails with "The specified user already exists", open %systemroot%\debug\dcpromoui.log and search for the DS::JoinDomain section. The MyNetJoinDomain line names the helper DC:
dcpromoui Enter DS::JoinDomain dcpromoui Enter MassageUserName administrator dcpromoui contoso.com\administrator dcpromoui Enter MyNetJoinDomain contoso.com<helper DC host name>.contoso.com dcpromoui Calling NetJoinDomain dcpromoui lpServer : (null) dcpromoui lpDomain : contoso.com<helper DC host name>.contoso.com dcpromoui lpAccountOU : (null) dcpromoui lpAccount : contoso.com\administrator dcpromoui fJoinOptions : 0x27 dcpromoui HRESULT = 0x80070524
A quick way to pull the relevant lines out of a long log in PowerShell:
Select-String -Path "$env:windir\debug\dcpromoui.log" -Pattern 'MyNetJoinDomain','80070524'
On the helper DC from step 2, check whether the old DC's computer account and NTDS Settings object are gone. If the computer account is still there, Microsoft lists three likely reasons:
repadmin /showrepl <helper DC> and look the error up in the common AD replication errors table.Once the helper has the deletion, run the installation again. Microsoft points to one more root cause for this error in a separate article: you can't add a user name or object name that differs from an existing one only by a character with a diacritic mark.
Look up the Directory Service events on the helper DC in the Windows Event ID Lookup, copy the ntdsutil metadata cleanup, repadmin /showrepl and Select-String lines from the PowerShell Cheat Sheet, pull the helper DC name and HRESULT out of dcpromoui.log with the Regex Tester, check that the new DC and the helper DC are on the site subnets you expect with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the network adapter vendor on the server you are promoting with the MAC Vendor Lookup. Related guides: event 2087 (metadata cleanup steps), trust relationship failed, replication error 8418 (schema mismatch) and common AD replication errors.
Promotion fails with Access is denied instead? See DC promotion or demotion: Access is denied.
Every AD replication error code with its cause and fix: common Active Directory replication errors.
A computer account with the same name as the server you're promoting already exists in the domain. Most often the server reuses the name of a domain controller that used to exist, and that DC's metadata was never cleaned up.
It's 0x524 hex, 1316 decimal, ERROR_USER_EXISTS. dcpromoui.log shows it as HRESULT = 0x80070524 after the NetJoinDomain call during DC promotion.
In %systemroot%\debug\dcpromoui.log on the server you're promoting. Search for the DS::JoinDomain section; the MyNetJoinDomain line names the helper domain controller the server is joining through.
The helper domain controller may not have the deletion yet: it can be several replication hops away from where you did the cleanup, have an inbound replication failure, or sit in a lag site that replicates late on purpose. Do the cleanup on the helper DC or wait until it replicates.
For best results on a domain controller in the same domain and site the new DC is joining, or on the helper DC named in the installation wizard or answer file.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.