Set-DPMProtectionGroup

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

Syntax

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

Description

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

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
Required:False
Position:Named
Default value:None
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
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByValue)
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[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
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.

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

Outputs

ProtectionGroup