PowerShell script exchange
Post Reply
futureweb
Enthusiast
Posts: 86
Liked: 7 times
Joined: Sep 03, 2015 12:15 am
Full Name: Patrick
Contact:

Protected Tapes can be set to free via Powershell

Post by futureweb »

Hi,

according to this site, it should be prohibited.
https://helpcenter.veeam.com/docs/backu ... tml?ver=95

But using Powershell doesn't check, if the tape is protected and just moves it to Media Pool Free using

Code: Select all

Move-VBRTapeMedium -Medium $tape -MediaPool "Free"
We modified our script, that it checkes the status

Code: Select all

ProtectedBySoftware
, so it won't move such tapes,
but thought I mentioned it, as I believe even in powershell an error should happen if you do something you shouldn't with a protected tape.
Probably I am wrong and it's by design ;)

Thanks Patrick
veremin
Product Manager
Posts: 20414
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Protected Tapes can be set to free via Powershell

Post by veremin »

Identified as a bug; according to the plan, it will be fixed in one of the next product releases. Thanks.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 3 guests