To disable outbound replication for a particuar DC, use the following command:
repadmin /options <dc name> +DISABLE_OUTBOUND_REPL
This can be helpful, for example, when extending the AD schema and you want to run some checks against the DC holding the Schema Master FSMO Role to ensure that all looks good before allowing the changes to replicate out.
To re-enable outbound replication, run:
repadmin /options <dc name> -DISABLE_OUTBOUND_REPL
Note that disabling outbound replication for a DC will not stop changes from being replicated to the DC from its replication partners.
To disable inbound replication for a particular DC, use the following command:
repadmin /options <dc name> +DISABLE_INBOUND_REPL
This can be useful in recovery situations in which you have accidentally deleted an object (e.g. OU) and you find that one of your DCs in a remote site has not yet received the change. If you stop inbound replication on this DC you have the ability to authoritatively restore the deleted OU.
To enable inbound replication, run:
repadmin /options <dc name> -DISABLE_INBOUND_REPL
One further option is to stop replication for the entire forest (aka Hitting the Panic Button). To do this, use the following (undocumented) option:
repadmin /options * +DISABLE_INBOUND_REPL
Note: Think carefully about the consequences of using this option before you do it!
To enable replication again, run:
repadmin /options * -DISABLE_INBOUND_REPL
For more information about the uses of repadmin to disable replication, see the KB articles
321163 and
840001.