Update-DPMProtectionGroup
Update-DPMProtectionGroup
Updates a protection group configuration.
構文
Parameter Set: Default
Update-DPMProtectionGroup [-ProtectionGroup] <ProtectionGroup> [[-Datasource] <Datasource[]> ] [[-Inquire]] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
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.
パラメーター
-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.
エイリアス |
none |
必須? |
false |
位置は? |
2 |
既定値 |
none |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Inquire
Indicates that DPM must perform a fresh inquiry.
エイリアス |
none |
必須? |
false |
位置は? |
3 |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ProtectionGroup<ProtectionGroup>
Specifies a ProtectionGroup object. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.
エイリアス |
none |
必須? |
true |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
注
- For more information, type "
Get-Help Update-DPMProtectionGroup -detailed
".
例
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