PowerShell Logo Small

Set-ADReplicationSiteLink



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

SYNOPSIS

Sets the properties for an Active Directory site link.

SYNTAX


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



Search powershellhelp.space

DESCRIPTION


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.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=216415
Get-ADReplicationSiteLink
New-ADReplicationSiteLink
Remove-ADReplicationSiteLink

REMARKS

<

Examples


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

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



Description

-----------

Add site 'Asia2' to the site link 'Europe-Asia', and remove site 'Asia'.




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

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



Description

-----------

Get all the site links in the directory with replication frequency greater than or equal to 60 minutes. Set the Cost property on these site
link objects to 200.




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

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



Description

-----------

Set the daily replication schedule of the site link with name 'NorthAmerica-SouthAmerica'.




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

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



Description

-----------

Enable change notification on the site link with name 'Europe-Asia'.