Share via


Get-DPMModifiableProtectionGroup

Gets a DPM protection group in an editable mode.

Syntax

Default (Default)

Get-DPMModifiableProtectionGroup
    [-ProtectionGroup] <ProtectionGroup>
    [<CommonParameters>]

Description

The Get-DPMModifiableProtectionGroup cmdlet gets a System Center - Data Protection Manager (DPM) protection group in an editable mode.

Once you have made the changes to the protection group, save the changes by using the Set-DPMProtectionGroup cmdlet.

Follow this sequence of steps when you work with a modifiable protection group:

  • Run the Get-DPMProtectionGroup cmdlet to get the unmodifiable protection group.
  • Run the Get-DPMModifiableProtectionGroup cmdlet to get the protection group from the previous step in modifiable form.
  • Perform actions on the protection group.
  • Run the Set-DPMProtectionGroup cmdlet to save the changed protection group.

Examples

Example 1: Get a protection group in a modifiable state

PS C:\> $PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer07"
PS C:\> Get-DPMModifiableProtectionGroup -ProtectionGroup $PGroup

The first command gets the protection group from the DPM server named TestingServer, and then stores that group in the variable named $PGroup.

The second command gets the protection group from $PGroup in a modifiable.

Parameters

-ProtectionGroup

Specifies a protection group that this cmdlet gets. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

Parameter properties

Type:ProtectionGroup
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

ProtectionGroup (Editable)