Enables a selected tape library drive.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Enable-VBRTapeDrive -Drive <VBRTapeDrive> [-WhatIf] [-Confirm] [<CommonParameters>]
This cmdlet enables a selected tape library recording drive that was previously disabled.
You can disable a tape drive by running Disable-VBRTapeDrive.
Specifies the array of drives. The cmdlet will enable these drives.
Accepts VBRTapeDrive type.
Specifies whether the cmdlet writes a message that describes the effects of running the cmdlet without actually performing any action.
Specifies whether the cmdlet displays a prompt that asks if the user is sure that they want to continue.
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
This command enables one drive of the selected library.
Get-VBRTapeLibrary -Name "HP MSL G3 Series 3.00" | Get-VBRTapeDrive | Select -Last 1 | Enable-VBRTapeDrive
This command enables a drive represented by the $drive variable.
- Run Get-VBRTapeLibrary to get the library. Save it to the $library variable.
- Run Get-VBRTapeDrive with the $library variable to get the drives of this library. Select the first drive. Save it to the $drive variable.
- Run Enable-VBRTapeDrive with the $drive variable.
$library = Get-VBRTapeLibrary -Name "HP MSL G3 Series 3.00"
$drive = Get-VBRTapeDrive -Library $library | Select -First 1
Enable-VBRTapeDrive -Drive $drive