PowerShell Logo Small

Enable-VMReplication



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

Enables replication of a virtual machine.

SYNTAX


Enable-VMReplication [-VMName] <String[]> [-ReplicaServerName] <String> [-ReplicaServerPort] <Int32> [-AuthenticationType] <ReplicationAuthenticationType> [-AsJob]
[-AutoResynchronizeEnabled <Boolean>] [-AutoResynchronizeIntervalEnd <TimeSpan>] [-AutoResynchronizeIntervalStart <TimeSpan>] [-BypassProxyServer <Boolean>]
[-CertificateThumbprint <String>] [-CompressionEnabled <Boolean>] [-ComputerName <String[]>] [-EnableWriteOrderPreservationAcrossDisks <Boolean>] [-ExcludedVhd
<HardDiskDrive[]>] [-ExcludedVhdPath <String[]>] [-PassThru] [-RecoveryHistory <Int32>] [-ReplicateHostKvpItems <Boolean>] [-ReplicationFrequencySec <Int32>]
[-VSSSnapshotFrequencyHour <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Enable-VMReplication [-VMName] <String[]> [-AllowedPrimaryServer <String>] [-AsJob] [-AsReplica] [-ComputerName <String[]>] [-PassThru] [-Confirm] [-WhatIf]
[<CommonParameters>]
Enable-VMReplication [-VM] <VirtualMachine[]> [-AllowedPrimaryServer <String>] [-AsJob] [-AsReplica] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]
Enable-VMReplication [-VM] <VirtualMachine[]> [-ReplicaServerName] <String> [-ReplicaServerPort] <Int32> [-AuthenticationType] <ReplicationAuthenticationType> [-AsJob]
[-AutoResynchronizeEnabled <Boolean>] [-AutoResynchronizeIntervalEnd <TimeSpan>] [-AutoResynchronizeIntervalStart <TimeSpan>] [-BypassProxyServer <Boolean>]
[-CertificateThumbprint <String>] [-CompressionEnabled <Boolean>] [-EnableWriteOrderPreservationAcrossDisks <Boolean>] [-ExcludedVhd <HardDiskDrive[]>] [-ExcludedVhdPath
<String[]>] [-PassThru] [-RecoveryHistory <Int32>] [-ReplicateHostKvpItems <Boolean>] [-ReplicationFrequencySec <Int32>] [-VSSSnapshotFrequencyHour <Int32>] [-Confirm]
[-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Enable-VMReplication cmdlet enables replication of a virtual machine to a specified Replica server.



<

RELATED LINKS


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

REMARKS

<

Examples


Example 1

PS C:\> Enable-VMReplication VM01 server01.domain01.contoso.com 80 Kerberos



This example configures replication for a virtual machine named VM01 on the local Hyper-V host and directs replication traffic to port 80 on a Replica server named
server01.domain01.contoso.com, using Kerberos as the type of authentication.




Example 2

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



This example configures replication for all virtual machines on the local Hyper-V host to replica server and directs replication traffic to port 80 on a Replica server named
server01.domain01.contoso.com, using Kerberos as the type of authentication.




Example 3

PS C:\> Enable-VMReplication VM01 –AsReplica –AllowedPrimaryServer *.domain01.contoso.com



This example configures a virtual machine VM02 as a replica virtual machine and allows replication of the primary virtual machine from all primary servers that belong to a
domain named domain01.contoso.com.