PowerShell Logo Small

New-VMReplicationAuthorizationEntry



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

Creates a new authorization entry that allows one or more primary servers to replicate data to a specified Replica server.

SYNTAX


New-VMReplicationAuthorizationEntry [-AllowedPrimaryServer] <String> [-ReplicaStorageLocation] <String> [-TrustGroup] <String> [-ComputerName
<String[]>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


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.



<

RELATED LINKS






REMARKS

<

Examples


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.