--- title: "Enable-VBRTapeProtection" description: "This cmdlet sets software overwrite protection for selected tapes. Protection overrides the retention settings of the media pool to set a lifelong retention period for the selected tapes." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/enable-vbrtapeprotection.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Tape Devices > Managing Tapes > Enable-VBRTapeProtection" dateModified: "2026-08-19" --- # Enable-VBRTapeProtection ## Short Description Sets overwrite protection for selected tapes. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Enable-VBRTapeProtection -Medium [-PassThru] [] ``` ## Detailed Description This cmdlet sets software overwrite protection for selected tapes. Protection overrides the retention settings of the media pool to set a lifelong retention period for the selected tapes. You can set protection for both online or offline tapes that contain data. The protection can be switched off at any time. The retention settings will be changed to the value set for the media pool. Run the [`Disable-VBRTapeProtection`](disable-vbrtapeprotection.md) cmdlet to switch off the protection. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Medium

Specifies the array of tapes. The cmdlet will set protection to these tapes.

Accepts the VBRTapeMedium[] object, GUID or string. To get this object, run the Get-VBRTapeMedium cmdlet.

VBRTapeMedium[]

True

Named

True (ByPropertyName, ByValue)

PassThru

Defines that the command returns the output object to the Windows PowerShell console.

SwitchParameter

False

Named

False

`` 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). ## Output Object [`VBRTapeMedium[]`](vbrtapemedium.md) ## Examples ::: example ### Setting Overwrite Protection to Selected Tape This example shows how to set protection for the tape named `00140009`. ``` $tape = Get-VBRTapeMedium -Name "00140009" Enable-VBRTapeProtection -Medium $tape -PassThru ``` Perform the following steps: 1. Run the [`Get-VBRTapeMedium`](get-vbrtapemedium.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$tape` variable. 2. Run the `Enable-VBRTapeProtection` cmdlet. Set the `$tape` variable as the `Medium` parameter value. Provide the `PassThru` parameter. ::: ## Related Commands [`Get-VBRTapeMedium`](get-vbrtapemedium.md)