PowerShell Logo Small


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


Starts replication of a virtual machine.


Start-VMInitialReplication [-VMName] <String[]> [-AsJob] [-ComputerName <String[]>] [-DestinationPath <String>] [-InitialReplicationStartTime <DateTime>] [-PassThru]
[-UseBackup] [-Confirm] [-WhatIf] [<CommonParameters>]
Start-VMInitialReplication [-VM] <VirtualMachine[]> [-AsJob] [-DestinationPath <String>] [-InitialReplicationStartTime <DateTime>] [-PassThru] [-UseBackup] [-Confirm]
[-WhatIf] [<CommonParameters>]
Start-VMInitialReplication [-VMReplication] <VMReplication[]> [-AsJob] [-DestinationPath <String>] [-InitialReplicationStartTime <DateTime>] [-PassThru] [-UseBackup]
[-Confirm] [-WhatIf] [<CommonParameters>]

Search powershellhelp.space


The Start-VMInitialReplication cmdlet starts replication of a virtual machine using the method you select. You also can schedule replication to start up to 7 days later.



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




Example 1

PS C:\> Start-VMInitialReplication VM01

This example starts initial replication of virtual machine VM01 over the network.

Example 2

PS C:\> Start-VMInitialReplication *

This example starts initial replication over the network for all the virtual machines on the local Hyper-V host for which initial replication is pending.

Example 3

PS C:\> Start-VMInitialReplication * -DestinationPath R:\IRLoc

This example exports the initial replication of all virtual machines on the local Hyper-V host for which initial replication is pending, to the location R:\IRLoc. This
example assumes that the location is an external drive, which would be shipped to the Replica site so that the initial replication can be completed.

Example 4

PS C:\> Enable-VMReplication VM01 -AsReplica –computername MyReplica.contoso.com
PS C:\> Enable-VMReplication VMO1 -ReplicaServerName ReplicaServer01 -ReplicaServerPort 80 -AuthenticationType Kerberos –computername MyPrimary.contoso.comPS
PS C:\> Start-VMInitialReplication VM01 –usebackup –computername MyPrimary.contoso.com

This example uses several consecutive commands to start initial replication from backup. First, it enables a restored copy of virtual machine VM01 on the Replica server as a
Replica virtual machine. Then, it enables replication for VM01 from the primary server. Finally, it starts the initial replication to use the restored copy of VM01 on
Replica server as the basis of the initial replication.

Example 5

PS C:\> $VMRepl = Get-VMReplication -VMName MyVM
PS C:\> Start-VMInitialReplication -VMReplication $VMRepl

The first command returns a VMReplication object for the VM named MyVM and stores it in the variable $VMRepl.

The second cmdlet then uses this object to start the initial replication for the stored VM.