Get-Tape

Get-Tape

Returns a list of tapes in the library across drives and slots.

Syntax

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


Get-Tape [-RecoveryPointLocation] <RecoverySourceLocation> [<CommonParameters>]


Get-Tape [-ProtectionGroup] <ProtectionGroup> [<CommonParameters>]

Detailed Description

The Get-Tape cmdlet returns a list of tapes in the library across drives and slots.

Using the -DPMLibrary parameter returns the tapes in the specified library.

Using the -ProtectionGroup parameter returns the tapes used by the specified protection group.

Using the -RecoveryPointLocation parameter returns the tapes used by a recovery point.

Parameters

-RecoveryPointLocation

The location of the recovery point. This is necessary if a recovery item exists in more than one location for the same point in time. For example, on a disk and tape or on two tapes.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue)

Position?

0

-DPMLibrary

A DPM library object.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue)

Position?

0

-ProtectionGroup

The name of a protection group.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue)

Position?

0

-CommonParameter

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

Input and Return Types

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

Notes

  • For more information, type "Get-Help Get-Tape -detailed".
    For technical information, type "Get-Help Get-Tape -full".

    Additionally, any updated information about the cmdlet will be available at https://go.microsoft.com/fwlink/?LinkId=95130.

Examples

EXAMPLE 1

$DPMLib = Get-DPMLibrary -DPMServerName "TestingServer" 
Get-Tape -DPMLibrary $DPMLib

This command returns the list of tapes on TestingServer.