Get-DPMChildDatasource

Get-DPMChildDatasource

Returns the protectable file system objects within a data source.

Syntax

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

Detailed Description

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.

Parameters

-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.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ChildDatasource<ProtectableObject>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Inquire

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ProtectionGroup<ProtectionGroup>

Specifies a protection group.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

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.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

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

Outputs

The output type is the type of the objects that the cmdlet emits.

  • ChildDatasource

Notes

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

Examples

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