Get-DPMPolicyObjective

Gets the protection policy for a protection group.

Syntax

Get-DPMPolicyObjective
   [-ProtectionGroup] <ProtectionGroup>
   -LongTerm <LongTermLocation>
   [<CommonParameters>]
Get-DPMPolicyObjective
   [-ProtectionGroup] <ProtectionGroup>
   [-ShortTerm]
   [<CommonParameters>]

Description

The Get-DPMPolicyObjective cmdlet gets the protection policy for a protection group. A protection policy is the retention range and frequency of synchronization to disk or backup to tape.

Examples

Example 1: Get a short-term policy objective for a protection group

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

The first command gets the protection group from the System Center 2019 - Data Protection Manager (DPM) server named DPMServer02, and then stores the group in the $PGroup variable.

The second command gets the short-term policy objective from the protection group in $PGroup.

Example 2: Get a long-term policy objective for a protection group

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

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

The second command gets the long-term policy objective from the protection group in $PGroup.

Parameters

-LongTerm

Specifies the type of long-term protection policy that this cmdlet gets.

The acceptable values for this parameter are:

  • Tape
  • Online
  • OnlineAndTape
Type:LongTermLocation
Accepted values:Online, Tape
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ProtectionGroup

Specifies a protection group for which this cmdlet gets a policy. 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

-ShortTerm

Indicates that this cmdlet gets the short-term protection policy.

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

Outputs

PolicyObjective