Fix 0x00002193: Disabled Cross-Ref Replica Change
You get this when trying to modify a disabled cross-reference object in AD. The fix is to enable it first, then make your change.
When This Error Hits
You're working on Active Directory replication, maybe adding a new domain controller or adjusting the naming context topology. You pop open ADSI Edit, navigate to CN=Partitions,CN=Configuration,DC=yourdomain,DC=com, find the cross-reference object for a domain or application partition, and try to modify the msDS-ReplicaSet attribute or the dnsRoot property. Then you get this:
ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR
0x00002193
I've seen this on Windows Server 2016 and 2019 after an ill-advised repadmin /removelingeringobjects run that disabled a cross-reference. Also happens when someone manually marks a crossRef object as disabled to stop replication, then later tries to re-enable it.
Root Cause
The cross-reference object (crossRef) has a boolean attribute called msDS-EnabledFeatureBL? No. Actually, the key attribute is enabled (or its LDAP display name enabled). Wait — the real attribute is msDS-EnabledFeatureBL is for something else. What's actually happening here is that the crossRef object has an attribute named enabled (LDAP name: enabled), but it's a computed construct. Under the hood, the system checks the systemFlags attribute. Bit 7 (0x80) is the disabled flag. When that bit is set, the cross-reference is considered disabled.
The error means: you tried to change the replica set (like adding a new DC to replicate that partition) on a crossRef that's currently disabled. AD won't let you modify replica set properties on a disabled cross-reference because it assumes you're cleaning up or the partition is being decommissioned. The fix is simple: enable it first, make your change, then disable again if needed.
Why Microsoft Designed It This Way
Think about it: if you could add replicas to a disabled cross-reference, you'd end up with orphaned replication links. The disabled state is a safety lock. AD enforces that you can't build a replica topology on a crossRef that's marked as not in use. It's the same logic as not being able to mount a drive that's been dismounted — you have to remount first.
The Fix
You'll need ADSI Edit, which is part of the RSAT tools. On a domain controller or a machine with RSAT installed, run adsiedit.msc.
- Connect to the Configuration Naming Context — In ADSI Edit, right-click on "ADSI Edit" in the left pane and choose "Connect to". Select "Configuration" from the dropdown. Click OK.
- Navigate to the Partitions Container — Expand
CN=Configuration,DC=yourdomain,DC=com, thenCN=Partitions. This is where all cross-reference objects live. Each domain, application partition, and even the forest's own domain has one. - Find the Disabled crossRef — Look for the object whose
cnmatches the partition you're trying to modify. For example,CN=childdomainorCN=DC=child,DC=domain,DC=com. Right-click it, choose Properties. - Check the
systemFlagsvalue — In the Attribute Editor, scroll tosystemFlags. Double-click it. If the value is 0x80 (128 decimal) or contains that bit, it's disabled. A normal, enabled crossRef hassystemFlags= 0 (or maybe 1 with other bits). - Enable the cross-reference — Change the
systemFlagsvalue by clearing bit 7. So if it's 128, set it to 0. If it's 129 (0x81), set it to 1. Click OK. - Apply your replica set change — Now modify whatever you needed to change on the
msDS-ReplicaSetordnsRootornCName. It should work without the 0x00002193 error. - Optionally re-disable the crossRef — If you need to disable it again (e.g., for a partition you're slowly decommissioning), set
systemFlagsback to include 0x80 after your changes replicate. But note: the change you just made will replicate out even if you disable it immediately — AD doesn't revert changes when you toggle the flag.
What If It Still Fails?
Two things to check:
- Replication latency: If you just enabled the crossRef on one DC but you're running the tool on another DC, the enable might not have replicated yet. Force replication with
repadmin /syncall /AdePon the DC where you made the change, or run ADSI Edit on the same DC that holds the PDC Emulator role for consistency. - Protected object: Some crossRef objects are system-critical and won't let you change
systemFlagsat all. The forest's own domain crossRef (the one forDC=forestroot) can't be disabled via ADSI Edit — it's protected. If you're hitting this on the forest root domain, you're probably doing something wrong. You can't disable the forest root crossRef. The error might be a symptom of a deeper issue like an invalid partition name in the crossRef. - Check event logs: Look in Directory Service log on the DC for Event ID 1925 or 2042. These often point to why the crossRef got disabled in the first place — usually a lingering object conflict or an attempted domain removal that failed halfway.
One last thing: if the systemFlags attribute is greyed out or you can't modify it, you might be looking at a read-only DC (RODC). Connect to a writable DC instead.
Side note:
repadmin /showreplwill sometimes show disabled cross-references as "cross-ref disabled" in its output. That's your clue before you even open ADSI Edit. Runrepadmin /showrepl * /csvand look for lines where the cross-ref column says "disabled".
Was this solution helpful?