The AD DS installation wizard fails with a schema mismatch between the servers involved. The cause is usually on the source DC: duplicate multi-valued attribute values, database corruption or attributes left by a schema deletion.
Home › Guides › DC promotion: schema mismatch
Last updated 20 November 2026
The Active Directory Installation Wizard (Dcpromo.exe) stops with a schema mismatch error while it replicates a directory partition from the helper (source) domain controller. Microsoft's article on this error (KB 838179) says the message is misleading: the root cause may have nothing to do with the schema partition or the objects in it. It lists three causes on the source DC:
To find which one, turn on NTDS diagnostic logging on the source DC, force the new DC to replicate from that source, and read the last object it sent (events 1240 on the source and 1203 on the destination). Then remove the duplicate value, deal with the corrupt object or database, or strip the attributes that have no schema definition.
If you see the same error as replication error 8418 between existing DCs, or right after a schema update, start with replication error 8418 (schema mismatch) instead: it covers schema version checks and the transient case.
On Windows Server 2003 the wizard reports:
Active Directory could not replicate the directory partition <DN path for partition> from the remote domain controller <fully qualified computer name of the source domain controller>. The replication operation failed because of a schema mismatch between the servers involved.
On Windows 2000 the text is:
The Directory Service failed to replicate the partition <partition name> from remote server <remote server name>. The replication operation failed because of a schema mismatch between the servers involved.
Newer versions of the AD DS installation wizard show the same "schema mismatch between the servers involved" sentence; the DCPromo.log lines and error code 8418 are in the 8418 guide.
| Cause | Where it is | Fix |
|---|---|---|
| 1. Duplicate values in a multi-valued attribute | An object on the source DC | Method 1, part 4: find the object, remove one duplicate value |
| 2. Corrupted attributes or database pages | The source DC's database | Method 1, part 5: repadmin /showmeta, ntdsutil files integrity, then rebuild or restore |
| 3. Attributes not covered by the current schema (schema deletion) | An object on the source DC | Method 2: delete the object, remove the attributes, or re-add the schema entries |
Back up the registry first. On the source DC, open HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Ntds\Diagnostics and set these entries to 5:
5 Replication Events7 Internal Configuration8 Directory Access9 Internal Processing24 DS SchemaFrom an elevated command prompt the same change looks like this (repeat for each entry name; NTDS\Diagnostics values are DWORDs):
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics" /v "5 Replication Events" /t REG_DWORD /d 5 /f
Then export the Diagnostics key to a file named Ntds_logging.reg on the administrator's desktop of the server that gets the error, so you can import the same settings there in part 3:
reg export "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics" Ntds_logging.reg
The new DC has to pull Active Directory from a source DC that has the extra logging turned on. Either:
Create an unattended Active Directory Installation Wizard answer file and run the wizard again on the server that reports the error. Microsoft notes how the wizard treats the logging settings:
Ntds_logging.reg as soon as inbound replication of the schema partition from the helper DC has started.Copy Ntds_logging.reg from part 1 to the administrator's desktop on the computer being promoted and double-click it at the right moment for its Windows version (before the attempt, or as soon as schema replication starts on Windows 2000). That way both ends of the failing replication log the object they were working on.
Read the Directory Service event logs on both servers:
The problem object is either the last object or attribute in the source DC's log, or the object in the same partition with the next highest update sequence number (USN). Export the object with ldifde:
ldifde -f MISMATCH -d "<DN of the object in the source DC's event 1240>"
Open the output in Notepad and look for an attribute that appears twice with the same value. Microsoft's example is an Exchange attribute, msExchMonitoringResponses, listed twice with an identical base64 value. If you find a duplicate, remove one of the values with ADSI Edit (adsiedit.msc) or ldifde, then run the installation wizard again.
If there is no duplicate, the source DC's database may be corrupt.
repadmin /showmeta CN=Secret,CN=Schema,CN=Configuration,DC=CORP,DC=COM
defaultObjectCategory and objectClass show what looks like USN numbers in the wrong place and an originating date of 4446-09-07.ntdsutil files integrity check. Clients that try to reach DFS root or link information on that DC may get access denied while it is in DSRM; that is by design.If the integrity check reports Jet error -1206, Microsoft says not to repair the database with ntdsutil or esentutl under any circumstances. Instead:
The meaning of -1206 and the other Jet errors, and the bottom-up database checks, are in AD Jet database errors and recovery.
When you are done, set the same five Ntds\Diagnostics entries back to 0 on every DC where you changed them: 5 Replication Events, 7 Internal Configuration, 8 Directory Access, 9 Internal Processing and 24 DS Schema.
The third cause is a helper DC with attributes in its database that the current schema doesn't define. Microsoft gives one way this happens: a schema object was deleted on a Windows 2000 DC before Windows 2000 Service Pack 3 was installed.
5 Replication Events = 5): during outbound replication it logs each object and attribute it ships. When the error occurs, look for the next object that would have been shipped to the destination.Then run the installation again. If promotion then fails with a different error, see AD DS install: the specified user already exists or the common AD replication errors table.
Look up 1203, 1039 and 1173 in the Windows Event ID Lookup, copy the reg add for NTDS Diagnostics, ldifde and repadmin /showmeta lines from the PowerShell Cheat Sheet, pull the object DN and attribute names out of exported event 1240 text with the Regex Tester, check that the new DC and its source DC sit 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: replication error 8418 (schema mismatch), AD DS install: the specified user already exists, AD Jet database errors and common AD replication errors.
Every AD replication error code with its cause and fix: common Active Directory replication errors.
Microsoft lists three causes on the source (helper) domain controller: duplicate values in a multi-valued attribute, corrupted attributes or database pages, or attributes that the current schema no longer covers because a schema object was deleted. Despite the message, the schema partition itself is often fine.
It is the same error text, 8418 ERROR_DS_DRA_SCHEMA_MISMATCH. During promotion, Microsoft's dcpromo article points first at bad data on the source DC. Between existing DCs, or right after a schema update, check schema versions and the transient case described in the 8418 guide.
On the source DC set 5 Replication Events, 7 Internal Configuration, 8 Directory Access, 9 Internal Processing and 24 DS Schema under HKLM\SYSTEM\CurrentControlSet\Services\Ntds\Diagnostics to 5. Set them back to 0 when you are done.
On the source DC, find the last event 1240: it names the last object and attribute replicated to the new DC. The problem object is that one or the next object by USN in the same partition. Export it with ldifde -f MISMATCH -d plus the DN and look for a duplicated value.
Don't repair the database with ntdsutil or esentutl. Promote from another source DC with the bad one offline, demote or force-demote the bad DC and clean up its metadata, or restore a valid system state backup if it is the only DC in its domain.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.