PowerShell Logo Small

Get-VMReplication



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

Gets the replication settings for a virtual machine.

SYNTAX


Get-VMReplication [[-VMName] <String[]>] [-ComputerName <String[]>] [-PrimaryServerName <String>] [-ReplicaServerName <String>] [-ReplicationHealth
<VMReplicationHealthState>] [-ReplicationMode <VMReplicationMode>] [-ReplicationRelationshipType <VMReplicationRelationshipType>] [-ReplicationState <VMReplicationState>]
[-TrustGroup <String>] [<CommonParameters>]
Get-VMReplication [-VM] <VirtualMachine[]> [-ReplicationRelationshipType <VMReplicationRelationshipType>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-VMReplication cmdlet gets the replication settings for a virtual machine.



<

RELATED LINKS


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

REMARKS

<

Examples


Example 1

PS C:\> Get-VMReplication



This example gets the replication settings of all replication-enabled virtual machines on the local Hyper-V host.




Example 2

PS C:\> Get-VMReplication VM01



This example gets the replication settings of a virtual machine named VM01.




Example 3

PS C:\> Get-VMReplication –ReplicaServerName server01.domain01.contoso.com



This example gets the replication settings of all virtual machines replicating to server server01.domain01.contoso.com.




Example 4

PS C:\> Get-VMReplication –ReplicationState Replicating



This example gets the replication settings of all virtual machines in the Replicating state.




Example 5

PS C:\> Get-VMReplication –TrustGroup DEFAULT



This example gets the replication settings of all virtual machines in a trust group named DEFAULT.




Example 6

PS C:\> Get-VMReplication –ReplicationMode Primary



This example gets the replication settings of all primary virtual machines on the local host.