--- title: "Eject-VBRTapeMedium" description: "This cmdlet ejects the tape that is located in drive. The ejected tape is moved to a standard library slot." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/eject-vbrtapemedium.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Tape Devices > Managing Tapes > Eject-VBRTapeMedium" dateModified: "2026-08-19" --- # Eject-VBRTapeMedium ## Short Description Ejects tapes from drive. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax This cmdlet provides the following parameter sets: ## Detailed Description This cmdlet ejects the tape that is located in drive. The ejected tape is moved to a standard library slot. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Drive

Specifies the array of drives. The cmdlet will eject tapes from these drives.

Accepts the VBRTapeDrive[] object, GUID or string. To get this object, run the Get-VBRTapeDrive cmdlet.

VBRTapeDrive[]

True

Named

True (ByPropertyName, ByValue)

Medium

Specifies the array of tapes. The cmdlet will eject these tapes.

Accepts the VBRTapeMedium[] object, GUID or string. To get this object, run the Get-VBRTapeMedium cmdlet.

VBRTapeMedium[]

True

Named

True (ByPropertyName, ByValue)

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Examples ::: example ### Ejecting Selected Tape This example shows how to eject tape named `00140009`. ``` $tape = Get-VBRTapeMedium -Name "00140009" Eject-VBRTapeMedium -Medium $tape ``` Perform the following steps: 1. Run the [`Get-VBRTapeMedium`](get-vbrtapemedium.md) cmdlet. Specify the `Name` parameter value. Save it to the `$tape` variable. 2. Run the `Eject-VBRTapeMedium` cmdlet. Set the `$tape` variable as the `Medium` parameter value. ::: ## Related Commands - [`Get-VBRTapeMedium`](get-vbrtapemedium.md) - [`Get-VBRTapeDrive`](get-vbrtapedrive.md)