Get-DPMPolicyObjective
Get-DPMPolicyObjective
Return the protection policy for a protection group.
Syntax
Parameter Set: LongTerm
Get-DPMPolicyObjective [-ProtectionGroup] <ProtectionGroup> -LongTerm <LongTermLocation> [ <CommonParameters>]
Parameter Set: ShortTerm
Get-DPMPolicyObjective [-ProtectionGroup] <ProtectionGroup> -ShortTerm [ <CommonParameters>]
Detailed Description
The Get-DPMPolicyObjective cmdlet returns the protection policy for a protection group. The cmdlet returns the retention range and protection frequency (synchronization to disk or backup to tape) of the protection group.
Parameters
-LongTerm<LongTermLocation>
Indicates that the protection group uses long-term tape protection. Valid values for this parameter are:
-- Tape
-- Online
-- OnlineAndTape.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
Tape |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ProtectionGroup<ProtectionGroup>
Specifies a protection group.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
-ShortTerm
Indicates that the protection group is on disk, on tape, or on neither, if nothing is specified.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
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.
- PolicyObjective
Notes
For more information, type "
Get-Help Get-DPMPolicyObjective -detailed"
.For technical information, type "
Get-Help Get-DPMPolicyObjective -full
".
Examples
Example 1: Get a short-term policy objective for a protection group
This example returns the short-term policy objective of a protection group.
The first command gets the protection group from the DPM server named "DPMServer02" and stores the result in the $Pg. variable.
The second command gets the short-term policy objective from the protection group in the $Pg. variable.
PS C:\> $Pg = Get-ProtectionGroup -DPMServerName "DPMServer02"
PS C:\> Get-DPMPolicyObjective -ProtectionGroup $Pg -ShortTerm
Example 2: Get a long-term policy objective for a protection group
This example returns the long-term policy objective of a protection group.
The first command gets the protection group from the DPMserver named "DPMServer02" and stores the protection group in the $Pg variable.
The second command gets the long-term policy objective from the protection group in the $Pg variable.
PS C:\> $Pg = Get-ProtectionGroup -DPMServerName "DPMServer02"
PS C:\> Get-DPMPolicyObjective -ProtectionGroup $Pg -LongTerm