Get-DPMRecoveryTarget

Get-DPMRecoveryTarget

Gets a recovery target.

Syntax

Parameter Set: Default
Get-DPMRecoveryTarget [-DpmRole] <DpmRole> [-Type] <AmDatasourceType> {SqlDatabase | SqlInstance | Client} [ <CommonParameters>]

Detailed Description

The Get-DPMRecoveryTarget cmdlet gets a recovery target for a System Center 2012 – Data Protection Manager (DPM) role.

Parameters

-DpmRole<DpmRole>

Specifies a DPM role object. To obtain a DPM role object, use the Get-DPMRole cmdlet.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Type<AmDatasourceType>

Specifies the type of data source that the cmdlet uses. The acceptable values for this parameter are:
-- SqlDatabase
-- SqlInstance
-- Client

Aliases

none

Required?

true

Position?

2

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 (http://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.

Notes

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

Examples

Example 1: Get a recovery target for a role

This example gets a recovery target for a DPM role.

The first command gets a DPM role named OpsMgrSQL and stores the result in the $Role variable.

The second command gets the recovery target of the SQLInstance type for the role stored in the $Role variable.

PS C:\> $Role = Get-DPMRole -Name "OpsMgrSQL"
PS C:\> Get-DPMRecoveryTarget -DPMRole $Role -Type SQLInstance

Add-DPMRecoveryTarget

New-DPMRecoveryTarget

Add-DPMRecoveryTarget