Disables a selected tape library drive.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Disable-VBRTapeDrive -Drive <VBRTapeDrive> [-WhatIf] [-Confirm] [<CommonParameters>]
This cmdlet disables a selected tape library recording drive. When you disable a drive, Veeam Backup & Replication stops using it for read or write operations. You can disable a drive, for example, for maintenance.
Run Enable-VBRTapeDrive to enable the drive.
Specifies the array of drives. The cmdlet will disable 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 on common parameters, see the About CommonParameters section of Microsoft Docs.
This command disables one drive of the selected library.
Get-VBRTapeLibrary -Name "HP MSL G3 Series 3.00" | Get-VBRTapeDrive | Select -Last 1 | Disable-VBRTapeDrive
This command disables 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 Disable-VBRTapeDrive with the $drive variable.
$library = Get-VBRTapeLibrary -Name "HP MSL G3 Series 3.00"
$drive = Get-VBRTapeDrive -Library $library | Select -First 1
Disable-VBRTapeDrive -Drive $drive