PowerShell Logo Small

Set-VMReplication



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

Modifies the replication settings of a virtual machine.

SYNTAX


Set-VMReplication [-VMName] <String[]> [[-ReplicaServerName] <String>] [[-ReplicaServerPort] <Int32>] [[-AuthenticationType] <ReplicationAuthenticationType>]
[-AllowedPrimaryServer <String>] [-AsJob] [-AsReplica] [-AutoResynchronizeEnabled <Boolean>] [-AutoResynchronizeIntervalEnd <TimeSpan>] [-AutoResynchronizeIntervalStart
<TimeSpan>] [-BypassProxyServer <Boolean>] [-CertificateThumbprint <String>] [-CompressionEnabled <Boolean>] [-ComputerName <String[]>] [-DisableVSSSnapshotReplication]
[-EnableWriteOrderPreservationAcrossDisks <Boolean>] [-InitialReplicationStartTime <DateTime>] [-PassThru] [-RecoveryHistory <Int32>] [-ReplicateHostKvpItems <Boolean>]
[-ReplicationFrequencySec <Int32>] [-Reverse] [-UseBackup] [-VSSSnapshotFrequencyHour <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-VMReplication [-VM] <VirtualMachine[]> [[-ReplicaServerName] <String>] [[-ReplicaServerPort] <Int32>] [[-AuthenticationType] <ReplicationAuthenticationType>]
[-AllowedPrimaryServer <String>] [-AsJob] [-AsReplica] [-AutoResynchronizeEnabled <Boolean>] [-AutoResynchronizeIntervalEnd <TimeSpan>] [-AutoResynchronizeIntervalStart
<TimeSpan>] [-BypassProxyServer <Boolean>] [-CertificateThumbprint <String>] [-CompressionEnabled <Boolean>] [-DisableVSSSnapshotReplication]
[-EnableWriteOrderPreservationAcrossDisks <Boolean>] [-InitialReplicationStartTime <DateTime>] [-PassThru] [-RecoveryHistory <Int32>] [-ReplicateHostKvpItems <Boolean>]
[-ReplicationFrequencySec <Int32>] [-Reverse] [-UseBackup] [-VSSSnapshotFrequencyHour <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-VMReplication [-VMReplication] <VMReplication[]> [[-ReplicaServerName] <String>] [[-ReplicaServerPort] <Int32>] [[-AuthenticationType] <ReplicationAuthenticationType>]
[-AllowedPrimaryServer <String>] [-AsJob] [-AsReplica] [-AutoResynchronizeEnabled <Boolean>] [-AutoResynchronizeIntervalEnd <TimeSpan>] [-AutoResynchronizeIntervalStart
<TimeSpan>] [-BypassProxyServer <Boolean>] [-CertificateThumbprint <String>] [-CompressionEnabled <Boolean>] [-DisableVSSSnapshotReplication]
[-EnableWriteOrderPreservationAcrossDisks <Boolean>] [-InitialReplicationStartTime <DateTime>] [-PassThru] [-RecoveryHistory <Int32>] [-ReplicateHostKvpItems <Boolean>]
[-ReplicationFrequencySec <Int32>] [-Reverse] [-UseBackup] [-VSSSnapshotFrequencyHour <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-VMReplication cmdlet modifies the replication settings of a virtual machine.



<

RELATED LINKS


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

REMARKS

<

Examples


Example 1

PS C:\> Set-VMReplication VM01 –AutoResynchronizedDisabled $true –AutoResynchronizeIntervalStart “18:30:00” –AutoResynchronizeIntervalEnd "06:00:00"



This example configures the auto-resynchronization of virtual machine VM01.




Example 2

PS C:\> Set-VMReplication VM01 –AsReplica –AllowedPrimaryServer server01.domain01.contoso.com



This example configures virtual machine VM01 as a Replica virtual machine, allowing replication from primary server server01 from domain domain01.contoso.com.




Example 3

PS C:\> Set-VMReplication VM01 –RecoveryHistory 4 –VSSSnapshotFrequency 4



This example configures the recovery history and application-consistent recovery points of the virtual machine VM01.




Example 4

PS C:\> Set-VMReplication VM01 -Reverse



This example reverses the replication of virtual machine VM01.




Example 5

PS C:\> Set-VMReplication * server01.domain01.contoso.com 80



This example configures replication for all virtual machines on the local Hyper-V host to Replica server server01.domain01.contoso.com and port 80.