Get-ReplicaCreationMethod
Get-ReplicaCreationMethod
Retrieves the replica creation method that is specified for a protection group.
Syntax
Get-ReplicaCreationMethod [-ProtectionGroup] <ProtectionGroup> [-OnlineReplica <SwitchParameter>] [<CommonParameters>]
Detailed Description
The Get-ReplicaCreationMethod cmdlet retrieves the replica creation method that is specified for a protection group. The replica creation method specifies when the creation of a replica is initiated. The possible values are Now, Later, and Manual.
The Get-ReplicaCreationMethod cmdlet is the first step to change the specified replica creation method that is specified for a protection group. After you retrieve the replica creation method by using Get-ReplicaCreationMethod, you can change it using the Set-ReplicaCreationMethod.
Parameters
-ProtectionGroup
The name of a protection group.
Attributes
Name | Value |
---|---|
Required? |
true |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByValue) |
Position? |
0 |
-OnlineReplica
Indicates that an online replica must be created at initial replication.
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
false |
Position? |
named |
-CommonParameter
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.
Input and Return Types
The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.
Notes
For more information, type "Get-Help Get-ReplicaCreationMethod -detailed".
For technical information, type "Get-Help Get-ReplicaCreationMethod -full".Additionally, any updated information about the cmdlet will be available at https://go.microsoft.com/fwlink/?LinkId=95130.
Examples
EXAMPLE 1
$pg = Get-ProtectionGroup -DPMServerName TestingServer
Get-ReplicaCreationMethod -ProtectionGroup $pg
This command returns the replica creation method for Trial PG.