Ejects tape from the selected media drive.
This cmdlet is obsolete. The cmdlet still works, but it is recommended to rewrite your scripts using the Eject-VBRTapeMedium cmdlet.
Platform: VMware, Hyper-V
Eject-VBRTapeDrive -Drive <TapeDrive> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]
This cmdlet ejects tape from the specified drive. The tape returns to its original slot.
Run Eject-VBRTapeMedium to eject a specific tape from drive.
Run Export-VBRTapeMedium to get a tape out of the library.
Specifies the drive you want to eject.
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
This command ejects the tape from the drive named "Drive01". The drive object is obtained with Get-VBRTapeDrive and piped down.
Get-VBRTapeDrive -Name "Drive01" | Eject-VBRTapeDrive
This command ejects the tape from the drive represented by $drive variable. The drive object is obtained with Get-VBRTapeDrive and assigned to the variable beforehand.
Eject-VBRTapeDrive -Drive $drive