Share via


Get-DPMTapeDrive

Retrieves the tape drives in a library.

Syntax

Default (Default)

Get-DPMTapeDrive
    [-DPMLibrary] <Library[]>
    [<CommonParameters>]

Description

The Get-DPMTapeDrive cmdlet retrieves the tape drives in a library on a System Center - Data Protection Manager (DPM) server.

Examples

Example 1: Retrieve a list of tape drives in a library

PS C:\>$DpmLibrary = Get-DPMLibrary -DPMServerName "Contoso-DPMServer"
PS C:\> Get-DPMTapeDrive -DPMLibrary $DpmLibrary

The first command uses the Get-DPMLibrary cmdlet to get the library for the server named Contoso-DPMServer. The command stores it in the $DpmLibrary variable.

The second command uses the Get-DPMTapeDrive cmdlet to get the tape drives for the library in $DpmLibrary.

Parameters

-DPMLibrary

Specifies an array of DPM library objects for which this cmdlet gets tape drives. To obtain a DPM library object, use the Get-DPMLibrary cmdlet.

Parameter properties

Type:

Library[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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

Outputs

TapeDrive