PowerShell Logo Small


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


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


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


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.



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




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 | ForEach-Object {$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\