Update-DPMProtectionGroup

Update-DPMProtectionGroup

Updates a protection group configuration.

Syntax

Parameter Set: Default
Update-DPMProtectionGroup [-ProtectionGroup] <ProtectionGroup> [[-Datasource] <Datasource[]> ] [[-Inquire]] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Update-DPMProtectionGroup cmdlet refreshes the protection group configuration to update any changes to protected data sources. This cmdlet modifies the protection group without changing any settings to reflect changes to protected data sources.

Parameters

-Datasource<Datasource[]>

Specifies an array of data source objects. Data source objects include the following:

-- Windows file system share or volume.
-- Microsoft SQL Server database.
-- Microsoft Exchange storage group.
-- Microsoft SharePoint Server farm.
-- Microsoft Virtual Machine.
-- Data Protection Manager (DPM) database.
-- A system state that is a member of a protection group.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Inquire

Indicates that DPM must perform a fresh inquiry.

Aliases

none

Required?

false

Position?

3

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

-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.

Notes

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

Examples

Example 1: Update a production group

This example refreshes a protection group configuration to update any changes to protected data sources.

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

The second command gets the list of protected and unprotected data in the protection group stored in the $Pg variable. The command stores the results in the $Ds variable.

The third command updates the protection group stored in the $Pg variable with the data source stored in the $Ds variable.

PS C:\> $Pg=Get-DPMProtectionGroup -DPMServerName "DPMServer02"
PS C:\> $Ds=Get-DPMDatasource -ProtectionGroup $Pg
PS C:\> Update-DPMProtectionGroup -ProtectionGroup $Pg -Datasource $Ds[0] -Inquire

Get-DPMProtectionGroup

Get-DPMDatasource

Set-DPMProtectionGroup

New-DPMProtectionGroup

Rename-DPMProtectionGroup