Report on tapes used and free script to create in version 9

PowerShell script exchange

Report on tapes used and free script to create in version 9

Veeam Logoby rick196149 » Wed Nov 09, 2016 8:55 pm

Is there a script that can be run to email me the list of tapes that are free in b&R version 9 I looked at the commands in Veeam Backup and Replication and all point to V8.
rick196149
Lurker
 
Posts: 2
Liked: never
Joined: Sat Oct 22, 2016 10:50 pm
Full Name: Richard

Re: Report on tapes used and free script to create in versio

Veeam Logoby v.Eremin » Thu Nov 10, 2016 10:50 am

Tape commandlets have changed significantly between version 8 and version 9. So, you still can use the following construction to find out bardcodes of free tapes:

Code: Select all
Get-VBRTapeMedium | ?{($_.isfree -eq $True)} | select Barcode


Then, you need to generate an email, using Windows PowerShell functionality and pass list of barcodes as an email body.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13558
Liked: 1006 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: Bing [Bot] and 9 guests