Remove-DPMChildDatasource

Remove-DPMChildDatasource

Removes a data source or child data source from a protection group.

構文

Parameter Set: StopProtection
Remove-DPMChildDatasource [-ProtectionGroup] <ProtectionGroup> [-ChildDatasource] <ProtectableObject[]> [-KeepDiskData] [-KeepOnlineData] [-KeepTapeData] [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RejectCloud
Remove-DPMChildDatasource [-ProtectionGroup] <ProtectionGroup> [-ChildDatasource] <ProtectableObject[]> [-Online] [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Remove-DPMChildDatasource cmdlet removes a data source or child data source from a System Center 2012 – Data Protection Manager (DPM) protection group. A child data source can refer to files or folders on a protected volume.

If you remove a data source using the Remove-Datasource cmdlet, it is equivalent to setting an exclusion.

パラメーター

-ChildDatasource<ProtectableObject[]>

Specifies an array of data sources, such as folders in a file system, that you can protect individually.

エイリアス

none

必須?

true

位置は?

2

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-KeepDiskData

Indicates that the cmdlet keeps existing data on a disk.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-KeepOnlineData

Indicates that the cmdlet keeps replicas even after protection ends. You must also specify the KeepDiskData parameter to enable this parameter.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-KeepTapeData

Indicates that the cmdlet keeps existing data on a tape.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Online

Indicates whether online protection is enabled.

エイリアス

none

必須?

true

位置は?

3

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-PassThru

Indicates that the cmdlet generates output. By default, this cmdlet does not generate output. You can use the PassThru parameter in order to use the cmdlet in a pipeline.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ProtectionGroup<ProtectionGroup>

Specifies a protection group.

エイリアス

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)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • ProtectionGroup

  • For more information, type "Get-Help Remove-DPMChildDatasource -detailed".

Example 1: Remove a child data source

This example removes the ninth child data source stored in a parent data source.

The first command gets all protection groups from the DPM server named DPMServer07 and stores these groups in the $Pg variable. You cannot edit these protection groups.

The second command gets the first member of the $Pg array in editable mode, and then stores this protection group in the $Mpg variable.

The third command gets the data source for the list of protection groups in the $Pg variable and stores this data source in the $Po variable.

The fourth command uses standard array notation to specify the ninth element of the $Po array. The command removes that data source from the protection group stored in the $Mpg variable.

PS C:\> $Pg = Get-ProtectionGroup -DPMServerName "DPMServer07"
PS C:\> $Mpg = Get-ModifiableProtectionGroup $Pg[0]
PS C:\> $Po = Get-Datasource -ProtectionGroup $Pg
PS C:\> Remove-DPMChildDatasource -ProtectionGroup $Mpg -ChildDatasource $Po[8] 

関連トピック

Add-DPMChildDatasource

Get-DPMChildDatasource