Synopsis
Description
Parameters
-AuthType
Specifies the authentication method to use. Possible values for this parameter include:
Required? false
Position? named
Default value Microsoft.ActiveDirectory.Management.AuthType.Negotiate
Accept pipeline input? false
Accept wildcard characters? false
-Cost <Int32>
Specifies the cost to be placed on the site link. For more information on determining the cost, see the following topic called "Determining the Cost" in the TechNet Library: http://go.microsoft.com/fwlink/?LinkId=221871
Required? false
Position? named
Default value
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Credential <PSCredential>
Specifies the user account credentials to use to perform this task. The default credentials are the credentials of the currently logged on user unless the cmdlet is run from an Active Directory PowerShell provider drive. If the cmdlet is run from such a provider drive, the account associated with the drive is the default.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <String>
Specifies a description of the object. This parameter sets the value of the Description property for the object. The LDAP Display Name (ldapDisplayName) for this property is "description".
Required? false
Position? named
Default value
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Instance <ADReplicationSiteLink>
Specifies an instance of a site link object to use as a template for a new site link object.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-InterSiteTransportProtocol <ADInterSiteTransportProtocolType>
Specifies a valid intersite transport protocol option. Supported protocol options for the New-ADReplicationSiteLink cmdlet include the following: IP, SMTP.
Required? false
Position? named
Default value
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String>
Specifies the name of the site link. This parameter sets the Name property of the Active Directory object. The LDAP Display Name (ldapDisplayName) of this property is "name".
Required? true
Position? 1
Default value
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-OtherAttributes <Hashtable>
Specifies object attribute values for attributes that are not represented by cmdlet parameters. You can set one or more parameters at the same time with this parameter. If an attribute takes more than one value, you can assign multiple values. To identify an attribute, specify the LDAPDisplayName (ldapDisplayName) defined for it in the Active Directory schema.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PassThru <SwitchParameter>
Returns the new or modified object. By default (i.e. if -PassThru is not specified), this cmdlet does not generate any output.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ReplicationFrequencyInMinutes <Int32>
Species the frequency (in minutes) for which replication will occur where this site link is in use between sites. Active Directory preserves bandwidth between sites by minimizing the frequency of replication and by allowing you to schedule the availability of site links for replication. By default, intersite replication across each site link occurs every 180 minutes (3 hours). You can adjust this frequency to match your specific needs. Be aware that increasing this frequency increases the amount of bandwidth used by replication.
Required? false
Position? named
Default value
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ReplicationSchedule <ActiveDirectorySchedule>
Specifies the default replication schedule for any connections within this site link (intra-site replication). This allows you to schedule the availability of site links for use by replication. By default, a site link is available to carry replication traffic 24 hours a day, 7 days a week. You can limit this schedule to specific days of the week and times of day. You can, for example, schedule intersite replication so that it only occurs after normal business hours.
Required? false
Position? named
Default value
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Server <String>
Specifies the Active Directory Domain Services instance to connect to, by providing one of the following values for a corresponding domain name or directory server. The service may be any of the following: Active Directory Lightweight Domain Services, Active Directory Domain Services or Active Directory Snapshot instance.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SitesIncluded <ADReplicationSite[]>
Specifies the list of sites included in the site link.
Required? false
Position? 2
Default value
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm <SwitchParameter>
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf <SwitchParameter>
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
Syntax
New-ADReplicationSiteLink [-WhatIf] [-Confirm] [-AuthType <ADAuthType>] [-Cost <Int32>] [-Credential <PSCredential>] [-Description <String>] [-Instance <ADReplicationSiteLink>] [-InterSiteTransportProtocol <ADInterSiteTransportProtocolType>] [-Name] <String> [-OtherAttributes <Hashtable>] [-PassThru] [-ReplicationFrequencyInMinutes <Int32>] [-ReplicationSchedule <ActiveDirectorySchedule>] [-Server <String>] [[-SitesIncluded] <ADReplicationSite[]>] [<CommonParameters>]
C:\PS>New-ADReplicationSiteLink “America-Australia” -SitesIncluded America, Australia
Create a new site link named ‘America-Australia’ linking the two sites ‘America’ and ‘Australia’.
C:\PS>New-ADReplicationSiteLink “Australia-Asia” -SitesIncluded Australia,Asia -Cost 200 -ReplicationFrequencyInMinutes 15 -InterSiteTransportProtocol IP
Create a new site link named ‘Australia-Asia’ linking two sites ‘Australia’ and ‘Asia’, and set the Cost, ReplicationFrequencyInMinutes and InterSiteTransportProtocol on the new object.
C:\PS>$schedule = New-Object -TypeName System.DirectoryServices.ActiveDirectory.ActiveDirectorySchedule;
$schedule.ResetSchedule();
$schedule.SetDailySchedule(“Twenty”,”Zero”,”TwentyTwo”,”Thirty”);
New-ADReplicationSiteLink “NA-SA” -SitesIncluded NA,SA –ReplicationSchedule $schedule
Create a new site link named ‘NA-SA’ linking two sites ‘NA’ and ‘SA’, and set the daily ReplicationSchedule from 20:00 to 22:30.
C:\PS>New-ADReplicationSiteLink “Australia-Asia” -SitesIncluded Australia,Asia -OtherAttributes @{‘options’=1}
Create a new site link named ‘Australia-Asia’ linking two sites ‘Australia’ and ‘Asia’, and enable change notification on the new object.
Get-Command New-ADReplicationSiteLink
. Get-ADReplicationSiteLink
. Remove-ADReplicationSiteLink
. Set-ADReplicationSiteLink