PowerShell Logo Small


This is the built-in help made by Microsoft for the command 'Set-ADReplicationSiteLink', 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 the properties for an Active Directory site link.


Set-ADReplicationSiteLink [-Identity] <ADReplicationSiteLink> [-Add <Hashtable>] [-AuthType {Negotiate | Basic}] [-Clear <String[]>] [-Cost <Int32>] [-Credential
<PSCredential>] [-Description <String>] [-PassThru] [-Remove <Hashtable>] [-Replace <Hashtable>] [-ReplicationFrequencyInMinutes <Int32>] [-ReplicationSchedule
<ActiveDirectorySchedule>] [-Server <String>] [-SitesIncluded <Hashtable>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-ADReplicationSiteLink [-AuthType {Negotiate | Basic}] [-Credential <PSCredential>] [-Instance <ADReplicationSiteLink>] [-PassThru] [-Server <String>] [-Confirm]
[-WhatIf] [<CommonParameters>]

Search powershellhelp.space


The Set-ADReplicationSiteLink cmdlet can be used to set properties on an Active Directory site link. A site link connects two or more sites. Site links reflect the
administrative policy for how sites are to be interconnected and the methods used to transfer replication traffic. You must connect sites with site links so that domain
controllers at each site can replicate Active Directory changes.



Online Version: http://go.microsoft.com/fwlink/p/?linkid=291126




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

PS C:\>Set-ADReplicationSiteLink -Identity "Europe-Asia" -SitesIncluded @{Add="Asia2";Remove="Asia"}

This command adds site Asia2 to the site link Europe-Asia, and removes site Asia.

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

PS C:\>Get-ADReplicationSiteLink -Filter {ReplicationFrequencyInMinutes -ge 60} -Properties Cost | % {Set-ADReplicationSiteLink $_ -Cost 200}

This command gets all the site links in the directory with replication frequency greater than or equal to 60 minutes, and then sets the Cost property on these site link
objects to 200.

-------------------------- EXAMPLE 3 --------------------------

PS C:\>$schedule = New-Object -TypeName System.DirectoryServices.ActiveDirectory.ActiveDirectorySchedule
PS C:\> $schedule.ResetSchedule()
PS C:\> $schedule.SetDailySchedule("Twenty","Zero","TwentyTwo","Thirty")
PS C:\> Set-ADReplicationSiteLink -Identity "NorthAmerica-SouthAmerica" -ReplicationSchedule $schedule

This command sets the daily replication schedule of the site link with name NorthAmerica-SouthAmerica.

-------------------------- EXAMPLE 4 --------------------------

PS C:\>Set-ADReplicationSiteLink -Identity "Europe-Asia" -Replace @{'options'=1}

This command enables change notification on the site link with name Europe-Asia.