Disabling AD Replication

Replication is bidirectional, occurring both inbound and outbound.  Each of these directions can be disabled/enabled indepedently of the other using the Repadmin command.  Repadmin is part of the support tools, included on the Windows 2000 and Windows Server 2003 CDs but not installed by default.  (Installing them is highly recommended in all situations.)

To disable outbound replication from a particular DC, use this command:

repadmin /options <DC NAME> +DISABLE_OUTBOUND_REPL

Likewise, to disable inbound replication for a particular DC, use this command:

repadmin /options <DC NAME> +DISABLE_INBOUND_REPL

In these commands, we are adding the “DISABLE_OUTBOUND_REPL” or “DISABLE_INBOUND_REPL” flag to the DC, so that running “repadmin /options” will show that flag as an option on the selected DC.  To re-enable replication, then, we need to remove the flag using one of the two commands:

repadmin /options <DC NAME> -DISABLE_OUTBOUND_REPL
repadmin /options <DC NAME> -DISABLE_INBOUND_REPL

When replication is disabled, warning events 1115 (for disabled outbound replication) or 1113 (for disabled inbound replication) from source NTDS General will be logged in the Directory Service event log during system startup.  As far as I am aware, no events are regularly logged during normal operation to indicate that replication is disabled.  When replication is re-enabled, informational events 1116 (for outbound replication) and 1114 (for inbound replication) are logged.

When replication is disabled, NTDS KCC warning events (typically with event ID 1265) will be logged; the text of the message will provide information on the specific DCs and naming contexts involved, but the useful information is near the end of the event, where the message states that “The destination/source server is currently rejecting replication requests.”  If you see this, make sure that replication is enabled by searching the Directory Service event log for messages indicating that replication has been disabled.

Tags: ,

Does disabling Replication also apply to DNS? I have a situation where I need to add a DNS zone. I don’t want users to use this zone until I am finished populating it with all the host records. So essentially, I want to temporarily disable DNS resolution on this server and disable the zone replication until it is completed……

Jason,

If the DNS zones are AD-integrated, then yes–disabling AD replication will also disable DNS replication, since the two use the same replication mechanisms in that situation. If DNS is not AD-integrated, then you’ll need to stop the DNS zone transfers in order to prevent DNS information from moving from the master to the slave.

One trick that may help you in this instance is to mass-create all the DNS records at once using dnscmd.exe. Have a look at http://blog.scottlowe.org/2006/06/30/bulk-adding-entries-in-dns/ for more information.

Later,
Scott

I’m looking for an attribute or registry entry that gives a current status of inbound or outbound replication. I’m creating a little GUI for my “recovery DC” in my lag site so we can just press a button to turn inbound repl off, and then back on, but I can’t find anything. I figured it’d be an attribute somewhere on a site transport or dc in the configuration partition, but can’t seem to find anything. Any help would be much appreciated.

Thanks,

Eric Jansen

OK, I guess I was looking a bit too hard. If you type repadmin /options then it gives the current status.

Eric

Helped do what I needed! Thanks for the info!

the repadmin from windows 2003 verion support tool does not support the /option for diable and enable replications. I have to use repadmin from windows 2000 tool. So how can I disable the replication with 2003 version tool repadmin.exe?

Thanks