Set-DPMProtectionGroup

Set-DPMProtectionGroup

Saves all the actions performed on the protection group on the DPM server.

Syntax

Parameter Set: Default
Set-DPMProtectionGroup [-ProtectionGroup] <ProtectionGroup> [-Async] [-TranslateDSList <Datasource[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Set-DPMProtectionGroup cmdlet saves all the actions that you performed on the protection group on the System Center 2012 – Data Protection Manager (DPM) server.

Until you run the Set-DPMProtectionGroup cmdlet, the actions that you take on a modifiable protection group or a new protection group exist only in the memory. For example, when you create a protection group, use this cmdlet as the final step in the process.

Use the following sequence of steps to modify a protection group:

-- 1. Get-DPMProtectionGroup
-- 2. Get-DPMModifiableProtectionGroup
-- 3. Perform actions on the protection group
-- 4. Set-DPMProtectionGroup

Parameters

-Async

Indicates that the command runs asynchronously. When you run a command asynchronously, the command prompt returns immediately even if the job takes an extended time to finish.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ProtectionGroup<ProtectionGroup>

Specifies a ProtectionGroup object. 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

-TranslateDSList<Datasource[]>

Specifies an array of data sources. The translation of the data sources that you specify is forced. This helps to regenerate jobs.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

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.

  • ProtectionGroup

Notes

  • For more information, type "Get-Help Set-DPMProtectionGroup -detailed".

Examples

Example 1: Save a protection group

This example saves a protection group on the DPM server.

The first command gets the protection group on the DPM server named DPMServer02 and stores the results in the $Pg variable.

The second command saves the protection group stored in the $Pg variable.

PS C:\> $Pg = Get-DPMProtectionGroup -DPMServerName "DPMServer02"
PS C:\> Set-DPMProtectionGroup -ProtectionGroup $Pg

Update-DPMProtectionGroup

Get-DPMProtectionGroup

Rename-DPMProtectionGroup

New-DPMProtectionGroup

Rename-DPMProtectionGroup