Get-VMReplicationAuthorizationEntry
Get-VMReplicationAuthorizationEntry
Gets the authorization entries of a Replica server.
Syntax
Parameter Set: Default
Get-VMReplicationAuthorizationEntry [[-AllowedPrimaryServer] <String> ] [-ComputerName <String[]> ] [-ReplicaStorageLocation <String> ] [-TrustGroup <String> ] [ <CommonParameters>]
Detailed Description
The Get-VMReplicationAuthorizationEntry cmdlet gets the replication authorization entries specified for a Replica server.
Parameters
-AllowedPrimaryServer<String>
Specifies the allowed primary server for which replication authorization entries are to be retrieved.
Aliases |
none |
Required? |
false |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
true |
-ComputerName<String[]>
Specifies one or more Hyper-V hosts from which replication authorization entries are to be retrieved. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer — use “localhost” or a dot (“.”) to specify the local computer explicitly.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
. |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ReplicaStorageLocation<String>
Specifies the location where virtual hard disk files are stored when an authorized primary server sends replication data to the specified Replica server.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
true |
-TrustGroup<String>
Gets the replication authorization entries that have the specified value for TrustGroup.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
- VMReplicationAuthorizationEntry
Examples
Example 1
This example gets the replication authorization entries for the local Replica server.
PS C:\> Get-VMReplicationAuthorizationEntry
Example 2
This example gets the replication authorization entry for an allowed primary server named server01.domain01.contoso.com.
PS C:\> Get-VMReplicationAuthorizationEntry server01.domain01.contoso.com