PowerShell script exchange
Post Reply
winnt
Influencer
Posts: 23
Liked: 10 times
Joined: Apr 03, 2015 9:19 pm
Full Name: J D
Contact:

How do I Protect a tape via PowerShell?

Post by winnt » Jun 02, 2015 2:58 pm

Hello everyone,

How do I protect a tape via PowerShell? Currently I manually highlight tapes and right-click and choose "Protect" but would prefer a PowerShell command to add to my offsite tape script. I am assuming I need to set "ProtectedBySoftware" to True.

Thank you.

veremin
Product Manager
Posts: 16789
Liked: 1411 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: How do I Protect a tape via PowerShell?

Post by veremin » Jun 02, 2015 3:50 pm

You can do via the following commandlet:

Code: Select all

Enable-VBRTapeProtection -Medium [VBRTapeMedium[]]
Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests