PowerShell Logo Small

Import-VMInitialReplication



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

Imports initial replication files for a Replica virtual machine to complete the initial replication when using external media as the source.

SYNTAX


Import-VMInitialReplication [-VMName] <String[]> [-Path] <String> [-AsJob] [-ComputerName <String[]>] [-PassThru] [<CommonParameters>]
Import-VMInitialReplication [-VM] <VirtualMachine[]> [-Path] <String> [-AsJob] [-PassThru] [<CommonParameters>]
Import-VMInitialReplication [-VMReplication] <VMReplication[]> [-Path] <String> [-AsJob] [-PassThru] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Import-VMInitialReplication cmdlet imports initial replication files on a Replica server. It completes the initial replication of a
virtual machine when external is used as the source of the files for initial replication.



<

RELATED LINKS






REMARKS

<

Examples


Example 1

PS C:\>Import-VMInitialReplication VM01 d:\VMImportLocation\VM01



This example imports the initial replication files for a virtual machine named VM01 from location d:\VMImportLocation\VM01.




Example 2

PS C:\>Get-VMReplication | % {$path = “D:\OOBLoc\” + $_.VMName + “_” + $_.VMID; if (Test-Path $path –PathType Container)
{Import-VMInitialReplication $_ $path}}



This example imports the initial replication files for a set of virtual machines using files located in D:\OOBLoc\