Get-ChildDatasource

Get-ChildDatasource

Returns the protectable file system objects within a data source.

Syntax

Get-ChildDatasource [-ChildDatasource] <ProtectableObject> [[-ProtectionGroup] <ProtectionGroup>] [-Async <SwitchParameter>] [-Inquire <SwitchParameter>] [-Tag <Object>] [<CommonParameters>]

Detailed Description

The Get-ChildDatasource cmdlet returns the protectable file system objects, such as folders, which are within a data source (file system volume) and can be protected. File systems can be protected at a child data source level, but applications can be protected at the data source level only.

Parameters

-ChildDatasource

A data source that can be protected individually. For example, a folder in a file system.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue)

Position?

0

-ProtectionGroup

The name of a protection group.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue)

Position?

1

-Async

Allows the user to indicate that the cmdlet should run asynchronously. This is useful with cmdlets that take a long time to complete. The control returns to the user immediately after the operation starts. The progress of the operation is communicated to the user periodically. This is useful when building a GUI using cmdlets. It is not used when working with the DPM Management Shell.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-Inquire

Queries the protected computer and returns the list of data sources or child data sources on it.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-Tag

Helps distinguish the replies to each asynchronous call made by a cmdlet. This is useful when building a GUI using cmdlets.
It is not used when working with the DPM Management Shell.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-CommonParameter

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.

Input and Return Types

The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.

Notes

  • For more information, type "Get-Help Get-ChildDatasource -detailed".
    For technical information, type "Get-Help Get-ChildDatasource-full".

    Additionally, any updated information about the cmdlet will be available at https://go.microsoft.com/fwlink/?LinkId=95130.

Examples

EXAMPLE 1

$pg = Get-ProtectionGroup -DPMServerName "TestingServer" 
$ds = Get-Datasource -ProtectionGroup $pg 
$cds = Get-ChildDatasource -ChildDatasource $ds[1] -Inquire

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