PowerShell Logo Small

Start-VMInitialReplication



This is the built-in help made by Microsoft for the command 'Start-VMInitialReplication', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 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

Starts replication of a virtual machine.

SYNTAX


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

DESCRIPTION


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.



<

RELATED LINKS






REMARKS

<

Examples


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.comPS C:\>Enable-VMReplication VMO1 -ReplicaServerName
ReplicaServer01 -ReplicaServerPort 80 -AuthenticationType Kerberos –computername MyPrimary.contoso.comPSPS 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.