To disable/enable replication use these commands:

Disable it:
repadmin /options <Servername>:5000 +DISABLE_OUTBOUND_REPL 
repadmin /options <Servername>:5000 +DISABLE_INBOUND_REPL 

Enable it:
repadmin /options <Servername>:5000 -DISABLE_OUTBOUND_REPL 
repadmin /options <Servername>:5000 -DISABLE_INBOUND_REPL 

It is important to provide the servername:port before the flag, otherwise the command fails.

Source:
How to repair ADLDS repplication issues within the LDS instance used by DRA (microfocus.com)