Set-DPMProtectionGroup

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

Syntax

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

Description

The Set-DPMProtectionGroup cmdlet saves all the actions that you performed on the protection group on the System Center - 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:

Get-DPMProtectionGroup

Get-DPMModifiableProtectionGroup

Perform actions on the protection group

Set-DPMProtectionGroup

Examples

Example 1: Save a protection group

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

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

The second command saves the protection group in $PGroup.

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.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ProtectionGroup

Specifies a protection group on which this cmdlet acts. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

Type:ProtectionGroup
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-TranslateDSList

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

Type:Datasource[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

ProtectionGroup