Get-VBRTapeLibrary

Short Description

Returns tape libraries.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

This cmdlet provides the following parameter sets:

  • AllParameterSets (Default)

    Get-VBRTapeLibrary [-TapeServer <VBRTapeServer[]>] [<CommonParameters>]

  • Id

    Get-VBRTapeLibrary [-Id <Guid[]>] [-TapeServer <VBRTapeServer[]>] [<CommonParameters>]

  • Name

    Get-VBRTapeLibrary [-Name <String[]>] [-TapeServer <VBRTapeServer[]>] [<CommonParameters>]

Detailed Description

This cmdlet returns tape libraries connected to Veeam Backup & Replication.

You can get the list of all tape libraries, narrow down your search to particular tape servers or search for instances directly by name or ID.

Note

Tape libraries are added to Veeam Backup & Replication automatically when you add a tape server with connected library. Run the Add-VBRTapeServerAdds a tape server to Veeam Backup & Replication. cmdlet to add a tape server.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Id

Specifies the array of tape library IDs. The cmdlet will return tape libraries with these IDs.

Accepts Guid[] or String[].

Guid[]

False

Named

False

Name

Specifies the array of tape library names. The cmdlet will return tape libraries with these names.

String[]

False

Named

False

TapeServer

Specifies the array of tape servers. The cmdlet will return tape libraries connected to these tape servers.

Accepts the VBRTapeServer[] object, GUID or string type. To get this object, run the Get-VBRTapeServerReturns tape servers. cmdlet.

VBRTapeServer[]

False

Named

True (ByPropertyName, ByValue)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRTapeLibrary[]

Examples

Get-VBRTapeLibraryExample 1. Getting All Tape Libraries

This command gets a list of all tape libraries connected to Veeam Backup & Replication.

Get-VBRTapeLibrary

Get-VBRTapeLibraryExample 2. Getting All Tape Libraries Connected to Tape Server [Using Pipeline]

This command looks for all tape libraries connected to the tape server named Sydney_Tape_Server.

Get-VBRTapeServer -Name "Sydney_Tape_Server" | Get-VBRTapeLibrary

Perform the following steps:

  1. Run the Get-VBRTapeServerReturns tape servers. cmdlet. Specify the Name parameter value.
  2. Pipe the cmdlet output to the Get-VBRTapeLibrary cmdlet.

Get-VBRTapeServerReturns tape servers.

Page updated 2026-08-19

Page content applies to build 13.1.1.18