This is the built-in help made by Microsoft for the command 'Set-ADReplicationConnection', in PowerShell version 3 - as retrieved from
Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Sets properties on Active Directory replication connections.
Set-ADReplicationConnection [-Identity] <ADReplicationConnection> [-Add <Hashtable>] [-AuthType <ADAuthType>] [-Clear <String[]>] [-Credential
<PSCredential>] [-PassThru [<SwitchParameter>]] [-Remove <Hashtable>] [-Replace <Hashtable>] [-ReplicateFromDirectoryServer
<ADDirectoryServer>] [-ReplicationSchedule <ActiveDirectorySchedule>] [-Server <String>] [-Confirm [<SwitchParameter>]] [-WhatIf
[<SwitchParameter>]] [<CommonParameters>]
Set-ADReplicationConnection [-AuthType <ADAuthType>] [-Clear <String[]>] [-Credential <PSCredential>] [-PassThru [<SwitchParameter>]] [-Server
<String>] -Instance <ADReplicationConnection> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
The Set-ADReplicationConnection cmdlet sets properties on Active Directory replication connections. Connections are used to enable domain
controllers to replicate with each other. A connection defines a one-way, inbound route from one domain controller, the source, to another
domain controller, the destination. The Kerberos consistency checker (KCC) reuses existing connections where it can, deletes unused
connections, and creates new connections if none exist that meet the current need.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=216413
Get-ADReplicationConnection
<
-------------------------- EXAMPLE 1 --------------------------
C:\PS>Set-ADReplicationConnection "5f98e288-19e0-47a0-9677-57f05ed54f6b" -ReplicateFromDirectoryServer corp-DC01
Description
-----------
Set the replication connection with name '5f98e288-19e0-47a0-9677-57f05ed54f6b' to replicate from corp-DC01.
-------------------------- EXAMPLE 2 --------------------------
C:\PS>$schedule = New-Object -TypeName System.DirectoryServices.ActiveDirectory.ActiveDirectorySchedule;
$schedule.ResetSchedule();
$schedule.SetDailySchedule("Twenty","Zero","TwentyTwo","Thirty");
Get-ADReplicationConnection -Filter {ReplicateFromDirectoryServer -eq "corp-DC01"} -Properties ReplicationSchedule | %
{Set-ADReplicationConnection $_ - ReplicationSchedule $schedule}
Description
-----------
Get all the replication connections in the directory that replicate from corp-DC01. Set the daily replication schedule on these connection
objects.