PowerShell Logo Small

New-ADReplicationSiteLink



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

Creates a new Active Directory site link for in managing replication.

SYNTAX


New-ADReplicationSiteLink [-Name] <String> [[-SitesIncluded] <ADReplicationSite[]>] [-AuthType <ADAuthType>] [-Cost <Int32>] [-Credential
<PSCredential>] [-Description <String>] [-Instance <ADReplicationSiteLink>] [-InterSiteTransportProtocol <ADInterSiteTransportProtocolType>]
[-OtherAttributes <Hashtable>] [-PassThru [<SwitchParameter>]] [-ReplicationFrequencyInMinutes <Int32>] [-ReplicationSchedule
<ActiveDirectorySchedule>] [-Server <String>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The New-ADReplicationSiteLink cmdlet can be used to create a new 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=216378
Get-ADReplicationSiteLink
Remove-ADReplicationSiteLink
Set-ADReplicationSiteLink

REMARKS

<

Examples


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

C:\PS>New-ADReplicationSiteLink "NorthAmerica-Europe" -SitesIncluded NorthAmerica,Europe



Description

-----------

Create a new site link named 'NorthAmerica-Europe' linking the two sites 'NorthAmerica' and 'Europe'.




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

C:\PS>New-ADReplicationSiteLink "Europe-Asia" -SitesIncluded Europe,Asia -Cost 100 -ReplicationFrequencyInMinutes 15
-InterSiteTransportProtocol IP



Description

-----------

Create a new site link named 'Europe-Asia' linking two sites 'Europe' and 'Asia', and set the Cost, ReplicationFrequencyInMinutes and
InterSiteTransportProtocol on the new object.




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

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



Description

-----------

Create a new site link named 'NorthAmerica-SouthAmerica' linking two sites 'NorthAmerica' and 'SouthAmerica', and set the daily
ReplicationSchedule from 20:00 to 22:30.




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

C:\PS>New-ADReplicationSiteLink "Europe-Asia" -SitesIncluded Europe,Asia -OtherAttributes @{'options'=1}



Description

-----------

Create a new site link named 'Europe-Asia' linking two sites 'Europe' and 'Asia', and enable change notification on the new object.