This is an archive version of the document. To get the most up-to-date information, see the current version.

Get-VBRTapeLibrary

In this article

    Short Description

    Returns tape libraries.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Standard, Enterprise, Enterprise Plus

    Syntax

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

    -OR-

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

    -OR-

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

    Related Commands

    Get-VBRTapeServer

    Return Type

    VBRTapeLibrary[]

    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 that tape libraries are added to Veeam Backup & Replication automatically when you add tape server with connected library. Run Add-VBRTapeServer to add tape server.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    TapeServer

    Specifies the tape server on which you want to look for tape libraries.

    Accepts VBRTapeServer object, GUID or string type.

    You can assign multiple servers to this object.

    False

    Named

    True (by Value
    FromPipeline,
    ValueFromPipeline
    ByPropertyName)

    False

    Name

    Specifies the name of the tape media library, or search conditions.

    You can specify multiple names separated by commas.

    False

    Named

    False

    True

    Id

    Specifies the ID of the VBRTapeLibrary object you want to get.

    Accepts GUID or string type.

    You can assign multiple IDs to this object.

    False

    Named

    True (by Value
    FromPipeline,
    ValueFromPipeline
    ByPropertyName)

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

    Example 1

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

    PS C:\PS> Get-VBRTapeLibrary

    Example 2

    This command looks for all tape libraries connected to the tape server named 'Sydney_Tape_Server'. The tape server is obtained with Get-VBRTapeServer and piped down.

    PS C:\PS> Get-VBRTapeServer -Name "Sydney_Tape_Server" | Get-VBRTapeLibrary