Get-DPMChildDatasource

Get-DPMChildDatasource

Returns the protectable file system objects within a data source.

構文

Parameter Set: Default
Get-DPMChildDatasource [-ChildDatasource] <ProtectableObject> [[-ProtectionGroup] <ProtectionGroup> ] [-Async] [-Inquire] [-Tag <Object> ] [ <CommonParameters>]

詳細説明

The Get-DPMChildDatasource cmdlet returns the protectable file system objects, such as folders, that are within a data source, such as a file system volume. You can protect file systems at the child data source level, but you can protect applications only at the data source level.

パラメーター

-Async

Indicates that the command runs asynchronously. When you run a command asynchronously, the command prompt returns immediately even if the job takes an extended time to finish.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-ChildDatasource<ProtectableObject>

Specifies a data source, such as a folder in a file system, that you can protect individually.

エイリアス

none

必須?

true

位置は?

1

既定値

none

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

true (ByValue)

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

false

-Inquire

Indicates that the cmdlet queries the protected computer and returns the list of data sources or child data sources on it.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-ProtectionGroup<ProtectionGroup>

Specifies a protection group.

エイリアス

none

必須?

false

位置は?

2

既定値

none

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

true (ByValue)

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

false

-Tag<Object>

Specifies an object that helps distinguish the replies to each asynchronous call that a cmdlet makes. You can use this parameter to update a GUI that runs in Windows PowerShell, but do not use it in the Windows PowerShell console.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

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

出力

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

  • ChildDatasource

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

Example 1: Get a child data source

This example retrieves the child data sources on a protectable computer.

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 data source for the list of protection groups in $Pg and stores this data source in the $Ds variable.

The third command gets a list of the child data sources from element 1 of the $Ds array variable. The command uses the Inquire parameter, therefore, the command queries the protected computer.

PS C:\> $Pg = Get-ProtectionGroup -DPMServerName "DPMServer07"
PS C:\>$Ds = Get-Datasource -ProtectionGroup $Pg
PS C:\>Get-DPMChildDatasource -ChildDatasource $Ds[1] -Inquire

関連トピック

Add-DPMChildDatasource

Remove-DPMChildDatasource