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:
-
AllParameterSets (Default)Eject-VBRTapeMedium [<CommonParameters>]
-
MediumEject-VBRTapeMedium -Medium <VBRTapeMedium[]> [<CommonParameters>]
-
DriveEject-VBRTapeMedium -Drive <VBRTapeDrive[]> [<CommonParameters>]
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 |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
Medium |
Specifies the array of tapes. The cmdlet will eject these tapes.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
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:
- Run the
Get-VBRTapeMediumReturns tapes. cmdlet. Specify theNameparameter value. Save it to the$tapevariable. - Run the
Eject-VBRTapeMediumcmdlet. Set the$tapevariable as theMediumparameter value.
Related Commands
Get-VBRTapeMediumReturns tapes.Get-VBRTapeDriveReturns tape drives.