Condividi tramite


Get-DPMModifiableProtectionGroup

Get-DPMModifiableProtectionGroup

Gets a DPM protection group in an editable mode.

Syntax

Parameter Set: Default
Get-DPMModifiableProtectionGroup [-ProtectionGroup] <ProtectionGroup> [ <CommonParameters>]

Detailed Description

The Get-DPMModifiableProtectionGroup cmdlet gets a System Center 2012 – 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.

Parameters

-ProtectionGroup<ProtectionGroup>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

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.

  • ProtectionGroup (Editable)

Examples

Example 1: Get a protection group in a modifiable state

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.

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

Set-DPMProtectionGroup

Get-DPMProtectionGroup