Get-ModifiableProtectionGroup
Retrieves a protection group in an editable mode.
Get-ModifiableProtectionGroup [-ProtectionGroup] <ProtectionGroup> [<CommonParameters>]
The Get-ModifiableProtectionGroup cmdlet retrieves a protection group in an editable mode since the protection group object returned by Get-ProtectionGroup is not editable.
Once you have carried out the changes to the protection group, you must save the changes using the Set-ProtectionGroup cmdlet.
The sequence of steps when working with a modifiable protection group are:
Get-ProtectionGroup
Get-ModifiableProtectionGroup
<Perform actions on the protection group>
Set-ProtectionGroup
The name of a protection group.
Attributes
Name | Value |
---|---|
Required? |
true |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByValue) |
Position? |
0 |
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.
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.
For more information, type "Get-Help Get-ModifiableProtectionGroup -detailed".
For technical information, type "Get-Help Get-ModifiableProtectionGroup -full".Additionally, any updated information about the cmdlet will be available at https://go.microsoft.com/fwlink/?LinkId=95130.
$pg = Get-ProtectionGroup -DPMServerName TestingServer
Get-ModifiableProtectionGroup -ProtectionGroup $pg
This command returns the protection group in a modifiable state.