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

Eject-VBRTapeMedium

In this article

    Short Description

    Ejects tape from drive.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Standard, Enterprise, Enterprise Plus

    Syntax

    Eject-VBRTapeMedium  [<CommonParameters>]

    -OR-

    Eject-VBRTapeMedium -Medium <VBRTapeMedium[]>  [<CommonParameters>]

    -OR-

    Eject-VBRTapeMedium -Drive <VBRTapeDrive[]>  [<CommonParameters>]

    Related Commands

    Get-VBRTapeMedium

    Get-VBRTapeDrive

    Return Type

    None

    Detailed Description

    This cmdlet ejects tape that is located in drive. The ejected tape is moved to a standard library slot.

    You can eject a tape that is known to be located in drive, or eject a tape located in a selected drive, or eject tapes in all drives managed by Veeam Backup & Replication. This cmdlet provides three scenarios for each case.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Medium

    Specifies the tapes which you want to eject.

    Accepts VBRTapeMedium object, GUID or string type.

    You can assign multiple tapes to this object.

    True

    Named

    True (by Value
    FromPipeline, ValueFromPipeline
    ByPropertyName)

    False

    Drive

    Specifies the drive from which you want to eject tape.

    Accepts VBRTapeDrive object, GUID or string type.

    You can assign multiple tapes to this object.

    True

    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

    This command ejects tape named "00140009".

    1. Run Get-VBRTapeMedium to get the tape and save it to the $tape variable.
    2. Run Eject-VBRTapeMedium with this variable.

    PS C:\PS> $tape = Get-VBRTapeMedium -Name "00140009"

    PS C:\PS> Eject-VBRTapeMedium -Medium $tape