PowerShell Logo Small


This is the built-in help made by Microsoft for the command 'Set-ADReplicationConnection', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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 {Negotiate | Basic}] [-Clear <String[]>] [-Credential <PSCredential>]
[-PassThru] [-Remove <Hashtable>] [-Replace <Hashtable>] [-ReplicateFromDirectoryServer <ADDirectoryServer>] [-ReplicationSchedule <ActiveDirectorySchedule>] [-Server
<String>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-ADReplicationConnection [-AuthType {Negotiate | Basic}] [-Clear <String[]>] [-Credential <PSCredential>] [-PassThru] [-Server <String>] -Instance
<ADReplicationConnection> [-Confirm] [-WhatIf] [<CommonParameters>]

Search powershellhelp.space


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/p/?linkid=291124




-------------------------- EXAMPLE 1 --------------------------

PS C:\>Set-ADReplicationConnection -Identity "5f98e288-19e0-47a0-9677-57f05ed54f6b" -ReplicateFromDirectoryServer corp-DC01

This command sets the replication connection with name 5f98e288-19e0-47a0-9677-57f05ed54f6b to replicate from corp-DC01.

-------------------------- EXAMPLE 2 --------------------------

PS C:\>$schedule = New-Object -TypeName System.DirectoryServices.ActiveDirectory.ActiveDirectorySchedule
PS C:\> $schedule.ResetSchedule()
PS C:\> $schedule.SetDailySchedule("Twenty","Zero","TwentyTwo","Thirty")
PS C:\> Get-ADReplicationConnection -Filter {ReplicateFromDirectoryServer -eq "corp-DC01"} -Properties ReplicationSchedule | % {Set-ADReplicationConnection $_ -
ReplicationSchedule $schedule}

This example gets all the replication connections in the directory that replicate from corp-DC01, and then sets the daily replication schedule on these connection objects.