This is the built-in help made by Microsoft for the command 'New-VMReplicationAuthorizationEntry', 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.
Creates a new authorization entry that allows one or more primary servers to replicate data to a specified Replica server.
New-VMReplicationAuthorizationEntry [-AllowedPrimaryServer] <String> [-ReplicaStorageLocation] <String> [-TrustGroup] <String> [-ComputerName <String[]>] [<CommonParameters>]
The New-VMReplicationAuthorizationEntry cmdlet creates a new authorization entry that allows one or more primary servers to replicate data. To use this cmdlet, the value of
the ReplicationAllowedFromAnyServer property of the Replica server must be false. You can use the Get-VMReplicationServer cmdlet to check the value of this property.
<
Online Version: http://go.microsoft.com/fwlink/?LinkID=306897
<
Example 1
PS C:\> New-VMReplicationAuthorizationEntry server01.domain01.contoso.com D:\ReplicaVMStorage DEFAULT
This example creates a replication authorization entry on the local server for a primary server named server01.domain01.contoso.com and a trust group named DEFAULT. It also
specifies D:\ReplicaVMStorage as the location to create replica virtual hard disks for virtual machines replicated from server01.domain01.contoso.com.
Example 2
PS C:\> New-VMReplicationAuthorizationEntry *.domain01.contoso.com D:\ReplicaVMStorage MyDomain01 –ComputerName server02.domain01.contoso.com
This example creates a replication authorization entry on server server02.domain01.contoso.com that allows replication from all primary servers in the domain
domain01.contoso.com that also belong to the trust group MyDomain01. It also specifies D:\ReplicaVMStorage as the location to create replica virtual hard disks for virtual
machines replicated from these allowed primary servers.