It works fine for me, but I'm not sure this is exactly what you are looking for anyway. The cmdlet will list the files that are stored in the backup chain, thus it will list the .vmx, .vmdk, etc. It sounds like you are simply wanting to copy the backup files themselves (i.e. the VBK/VIB files), not the files that are contained within those backup files.
Also, unless you have only a single VM in each job the above script will be somewhat "random" since it will only return the very last OIB in the job, which, for a job with multiple VMs, would only be the very last VM in the job.
Thank you,
you're right: after reboot Veeam repository server the command work well, but this command retrieve the vmWare files that the job has saved, not the backup files!
if you are needing to see the backup files, use Get-VBRBackup and do a | GM on the object, it should have a method that allows you to get the backup files.
So:
Get-VBRBackup -name "my backup name" | gm
Read the list and you should see one.
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.