Set-ProtectionGroup

Set-ProtectionGroup

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

Syntax

Set-ProtectionGroup [-ProtectionGroup] <ProtectionGroup> [-Async <SwitchParameter>] [-TranslateDSList <Datasource>] [<CommonParameters>]

Detailed Description

The Set-ProtectionGroup cmdlet saves all the actions performed on the protection group on the DPM server.

For example, when a new protection group is being created this cmdlet is the final step in the process.

Until the Set-ProtectionGroup cmdlet is executed, the actions taken on a modifiable protection group or a new protection group only exist only in the memory.

The sequence of steps when working with a modifiable protection group are:

Get-ProtectionGroup
Get-ModifiableProtectionGroup
<Perform actions on the protection group>
Set-ProtectionGroup

Parameters

-ProtectionGroup

The name of a protection group.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue)

Position?

0

-Async

Allows the user to indicate that the cmdlet should run asynchronously. This is useful with cmdlets that take a long time to complete. The control returns to the user immediately after the operation starts. The progress of the operation is communicated to the user periodically. This is useful when building a GUI using cmdlets. It is not used when working with the DPM Management Shell.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-TranslateDSList

A list of data sources that need to be force translated. This helps to regenerate jobs.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-CommonParameter

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

Input and Return Types

The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.

Notes

  • For more information, type "Get-Help Set-ProtectionGroup -detailed".
    For technical information, type "Get-Help Set-ProtectionGroup -full".

    Additionally, any updated information about the cmdlet will be available at https://go.microsoft.com/fwlink/?LinkId=95130.

Examples

EXAMPLE 1

$pg = Get-ProtectionGroup -DPMServerName TestingServer 
Set-ProtectionGroup -ProtectionGroup $pg

This command saves the protection group. This is the final step in creating a protection group.