Browsing this site i found multiple ps scripts to inventory a tape drive and move media to a mediapool.
i can not get them to work i keep getting errors this might be because the scripts are for previous versions.
can someone assist me with a script that does a inventory and moves media from unrecognized to free media.
We need this since we are moving from backupexec to veeam with our tape drive.
this is the script i have found but it gives errors.
- Code: Select all
Write-host “Prepare Tape for Veeam backup”
Get-VBRTapeDrive | Start-VBRTapeInventory
$MediaPool = Get-VBRTapeMediaPool -Name "Unrecognized"
$FreeMediaPool = Get-VBRTapeMediaPool -Name "Free"
$Mediums = $MediaPool | Get-VBRTapeMedium
Move-VBRTapeMedium -Medium $Mediums -MediaPool $MediaPool -Confirm:$false