PowerShell Logo Small

Set-VMReplicationServer



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

SYNOPSIS

Configures a host as a Replica server.

SYNTAX


Set-VMReplicationServer [[-ReplicationEnabled] <Boolean>] [[-AllowedAuthenticationType] <RecoveryAuthenticationType>] [[-ReplicationAllowedFromAnyServer] <Boolean>]
[-CertificateAuthenticationPort <Int32>] [-CertificateThumbprint <String>] [-ComputerName <String[]>] [-DefaultStorageLocation <String>] [-Force]
[-KerberosAuthenticationPort <Int32>] [-MonitoringInterval <TimeSpan>] [-MonitoringStartTime <TimeSpan>] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-VMReplicationServer [[-ReplicationEnabled] <Boolean>] [[-AllowedAuthenticationType] <RecoveryAuthenticationType>] [[-ReplicationAllowedFromAnyServer] <Boolean>]
[-CertificateAuthenticationPortMapping <Hashtable>] [-CertificateThumbprint <String>] [-ComputerName <String[]>] [-DefaultStorageLocation <String>] [-Force]
[-KerberosAuthenticationPortMapping <Hashtable>] [-MonitoringInterval <TimeSpan>] [-MonitoringStartTime <TimeSpan>] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-VMReplicationServer cmdlet configures a host as a Replica server and enables you to specify the types of authentication and ports to use for incoming replication
traffic.


To restrict the replication traffic that the Replica server will accept by allowing it only from specific servers, use the New-VMReplicationAuthorizationEntry cmdlet.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306955

REMARKS

<

Examples


Example 1

PS C:\> Set-VMReplicationServer $true –AllowedAuthenticationType Kerberos



This example configures the local host as a Replica server and specifies Kerberos for authentication.




Example 2

PS C:\> Set-VMReplicationServer –ReplicationEnabled $true AllowedAuthenticationType Kerberos –ReplicationAllowedFromAnyServer $true –DefaultStorageLocation
d:\DefaultReplicaStorage



This example configures a Replica server that accepts replication from all authenticated servers and uses a default storage location of d:\DefaultReplicaStorage.




Example 3

PS C:\> Set-VMReplicationServer –MonitoringInterval "12:00:00" –MonitoringStartTime "17:00:00"



This example configures the Replica server with a monitoring interval of 12 hours starting at 17:00 hours.




Example 4

PS C:\> $portmapping = @{"Server1.contoso.com" = 82; "Server2.contoso.com" = 81; "Broker.contoso.com" = 80}
PS C:\> Set-VMReplicationServer -KerberosAuthenticationPortMapping $portmapping



This example configures the nodes of the cluster to receive replication on different ports. The first command declares a variable named portmapping and uses it to store the
server names of the nodes and the port to use on each node. The second command configures each node of the cluster to use port mapping for Kerberos authentication using the
values stored in the portmapping variable.