How to disable Active Directory Replication per Domain Controller

May 24, 2011

Introduction


During system crash, schema upgrade etc., you may need to disable Active Directory Replication per domain controller.
A common use for this trick is when a important data was deleted from Active Directory, but no backup is exits.
If Active Directory Replication didn’t completed (e.g. remote Active Directory site replication), you can disable the Active Directory Replication, the working domain controller/s wouldn’t be effected.


How to disable Active Directory Replication per Domain Controller


Disable inbound replication
repadmin /options DCNAME +DISABLE_INBOUND_REPL


This command will trigger Event ID 1114, in the Directory Service event log.


Disable outbound replication
repadmin /options DCNAME +DISABLE_OUTBOUND_REPL


This command will trigger Event ID 1116, in the Directory Service event log.


 


Enable inbound replication
repadmin /options DCNAME -DISABLE_INBOUND_REPL


This command will trigger Event ID 1113, in the Directory Service event log.


Enable outbound replication
repadmin /options DCNAME -DISABLE_OUTBOUND_REPL


This command will trigger Event ID 1115, in the Directory Service event log.


Monitoring the replication status  


You can use the command: Repadmin /showrepl, to verify the domain controller status:



C:\Windows\system32>Repadmin /showrepl


Repadmin: running command /showrepl against full DC localhost
Default-First-Site-Name\DCNAME


DSA Options: IS_GC DISABLE_INBOUND_REPL DISABLE_OUTBOUND_REPL
Site Options: (none)
DSA object GUID: 1973bbb2-2a63-4e5c-8144-2d0e2af3e723
DSA invocationID: 1973bbb2-2a63-4e5c-8144-2d0e2af3e723

Add comment
facebook linkedin twitter email

Leave a Reply