Move-VBRTapeMedium

Short Description

Moves a tape to media pool or vault.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

This cmdlet provides the following parameter sets:

  • MediaPool

    Move-VBRTapeMedium -Medium <VBRTapeMedium[]> -MediaPool <VBRTapeMediaPoolBase>

    [-WhatIf] [-Confirm] [<CommonParameters>]

  • Vault

    Move-VBRTapeMedium -Medium <VBRTapeMedium[]> -Vault <VBRTapeVault>

    [-WhatIf] [-Confirm] [<CommonParameters>]

Detailed Description

This cmdlet moves selected tapes to another media pool or media vault.

Important

When you move a tape to any media pool, Veeam Backup & Replication marks this tape as free.

You can configure automatic moving offline tapes to a vault in the media pool settings. Run the Set-VBRTapeMediaPoolModifies a media pool. cmdlet to edit media pool configuration.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

MediaPool

Specifies the media pool to which you want to move the tapes.

Accepts the VBRTapeMediaPool object, GUID or string. To get this object, run the Get-VBRTapeMediaPoolReturns media pools. cmdlet.

VBRTapeMediaPoolBase

True

Named

False

Medium

Specifies the array of tapes you want to move.

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

VBRTapeMedium[]

True

Named

True (ByPropertyName, ByValue)

Vault

Specifies the media vault to which you want to move the tapes.

Accepts the VBRTapeVault object, GUID or string. To get this object, run the Get-VBRTapeVaultReturns tape vaults. cmdlet.

VBRTapeVault

True

Named

False

Confirm

Defines whether the cmdlet displays a prompt that asks if the user is sure that they want to continue.

Note: Microsoft PowerShell enables the Confirm parameter for this cmdlet by default. To disable this option, set the parameter value to $false. That is, Confirm:$false.

SwitchParameter

False

Named

False

WhatIf

Defines whether the cmdlet writes a message that describes the effects of running the cmdlet without actually performing any action.

SwitchParameter

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Move-VBRTapeMediumExample 1. Moving Tape to Media Pool [Using Pipeline]

This example shows how to move the 0014001H tape to the File Backup Media Pool media pool.

$mediapool = Get-VBRTapeMediaPool -Name "File Backup Media Pool"

Get-VBRTapeMedium -Name 0014001H | Move-VBRTapeMedium -MediaPool $mediapool

Perform the following steps:

  1. Run the Get-VBRTapeMediaPoolReturns media pools. cmdlet. Specify the Name parameter value. Save the result to the $mediapool variable.
  2. Run the Get-VBRTapeMediumReturns tapes. cmdlet. Specify the Name parameter value.
  3. Pipe the cmdlet output to the Move-VBRTapeMedium cmdlet. Set the $mediapool variable as the MediaPool parameter value.

Move-VBRTapeMediumExample 2. Moving Tape to Vault [Using Variable]

This example shows how to move the 0014001H tape to the Sydney Remote Vault vault.

$medium = Get-VBRTapeMedium -Name 0014001H

$vault = Get-VBRTapeVault -Name "Sydney Remote Vault"

Move-VBRTapeMedium -Medium $medium -Vault $vault

Perform the following steps:

  1. Run the Get-VBRTapeMediumReturns tapes. cmdlet. Specify the Name parameter value. Save the result to the $medium variable.
  2. Run the Get-VBRTapeVaultReturns tape vaults. cmdlet. Specify the Name parameter value. Save the result to the $vault variable.
  3. Run the Move-VBRTapeMedium cmdlet. Set the $medium variable as the Medium parameter value. Set the $vault variable as the Vault parameter value.

Page updated 2026-08-19

Page content applies to build 13.1.1.18