--- title: "Eject-VBRTapeDrive (obsolete)" description: "This cmdlet ejects tape from the specified drive. The tape returns to its original slot. Run the Eject-VBRTapeMedium cmdlet to eject a specific tape from drive. Run the Export-VBRTapeMedium cmdlet to get a tape out of the library." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/eject-vbrtapedrive.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Obsolete Cmdlets > Eject-VBRTapeDrive (obsolete)" dateModified: "2026-08-19" --- # Eject-VBRTapeDrive ## Short Description Ejects tape from the selected media drive. ::: note This cmdlet is obsolete. The cmdlet still works, but it is recommended to rewrite your scripts using the [`Eject-VBRTapeMedium`](eject-vbrtapemedium.md) cmdlet. ::: **Platform**: VMware, Hyper-V ## Syntax ``` Eject-VBRTapeDrive -Drive [] ``` ## Detailed Description This cmdlet ejects tape from the specified drive. The tape returns to its original slot. Run the `Eject-VBRTapeMedium` cmdlet to eject a specific tape from drive. Run the [`Export-VBRTapeMedium`](export-vbrtapemedium.md) cmdlet to get a tape out of the library. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Drive

Specifies the drive you want to eject.

Accepts the TapeDrive object. To get this object, run the Get-VBRTapeDrive cmdlet.

TapeDrive

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 ### Example 1. Ejecting Tape from Drive [Using Pipeline] This example shows how to eject the tape from the `Drive01` drive. ``` Get-VBRTapeDrive -Name "Drive01" | Eject-VBRTapeDrive ``` Perform the following steps: 1. Run the [`Get-VBRTapeDrive`](get-vbrtapedrive.md) cmdlet. Specify the `Name` parameter value. 2. Pipe the cmdlet output to the `Eject-VBRTapeDrive` cmdlet. ::: ::: example ### Example 2. Ejecting Tape from Drive [Using Variable] This example shows how to eject the tape from the `Drive01` drive. ``` $drive = Get-VBRTapeDrive -Name "Drive01" Eject-VBRTapeDrive -Drive $drive ``` Perform the following steps: 1. Run the [`Get-VBRTapeDrive`](get-vbrtapedrive.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$drive` variable. 2. Pipe the cmdlet output to the `Eject-VBRTapeDrive` cmdlet. Set the `$drive` variable as the `Drive` parameter value. ::: ## Related Commands [`Get-VBRTapeDrive`](get-vbrtapedrive.md)