Get-DPMTapeDrive

Get-DPMTapeDrive

Retrieves a list of tape drives in a library on a DPM server.

Syntax

Parameter Set: Default
Get-DPMTapeDrive [-DPMLibrary] <Library[]> [ <CommonParameters>]

Detailed Description

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

Parameters

-DPMLibrary<Library[]>

Specifies an array of DPM library objects.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

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.

  • TapeDrive

Notes

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

Examples

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

This example retrieves a list of the tape drives in all libraries on the server Contoso-DPMServer.

The first command uses the Get-DPMLibrary cmdlet to retrieve the library, and stores the result in the $DPMLib variable.

The second command uses the Get-DPMTapeDrive cmdlet to retrieve a list of tape drives.

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

Disable-DPMTapeDrive

Enable-DPMTapeDrive

Get-DPMLibrary