Get-DPMTapeDrive

Retrieves the tape drives in a library.

Syntax

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

Description

The Get-DPMTapeDrive cmdlet retrieves the tape drives in a library on a System Center 2016 - 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.

Type:Library[]
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

TapeDrive