Get-DPMPolicyObjective
Get-DPMPolicyObjective
Return the protection policy for a protection group.
構文
Parameter Set: LongTerm
Get-DPMPolicyObjective [-ProtectionGroup] <ProtectionGroup> -LongTerm <DbEnums+LongTermLocation> {Online | Tape} [ <CommonParameters>]
Parameter Set: ShortTerm
Get-DPMPolicyObjective [-ProtectionGroup] <ProtectionGroup> -ShortTerm [ <CommonParameters>]
詳細説明
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.
パラメーター
-LongTerm<DbEnums+LongTermLocation>
Indicates that the protection group uses long-term tape protection. Valid values for this parameter are:
-- Tape
-- Online
-- OnlineAndTape.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ProtectionGroup<ProtectionGroup>
Specifies a protection group.
エイリアス |
none |
必須? |
true |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-ShortTerm
Indicates that the protection group is on disk, on tape, or on neither, if nothing is specified.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- PolicyObjective
注
For more information, type "
Get-Help Get-DPMPolicyObjective -detailed"
.For technical information, type "
Get-Help Get-DPMPolicyObjective -full
".
例
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