I have asked this before, but I’ll ask again:
I need to write a report about tapes that currently in my library that are FULL. This command, unfortunately, is monumentally slow:
$TapesToBeEjected = Get-VBRTapeMedium -Library $LibraryName | Where {{$_.IsFull -eq $TRUE}} | Select Name, LastWriteTime, MediaPoolID, IsFull, Location | Sort -Property MediaPoolID, Name
So rather than querying the all the tapes that Veeam has ever used (I have over 1300), I figure it will be faster to just query the library for the tapes *currently* in the slots and drives (that will be about 80). Then I can do the $_.IsFull on just those.
But I am not seeing a command that seems to do that. Is there one, that queries the library and returns tapes in slots and drives?
Otherwise I would have to loop though Get-VBRTapeMedium -Library $LibraryName , select only $_.Location = Slot or Drive, and then re-select for $_.IsFull.
And I don't think that would be materially faster.
Is there a better way to get the info I need?
