I find myself in the same situation as the original poster. I was initially attempting to pass VM names from a text file, now I'm attempting to use Find-VBRHvEntity as v.Eremin recommends. When I use this cmdlet however I receive the following error:
Cannot bind parameter 'Entity'. Cannot convert the "Veeam.Backup.Core.Infrastructure.CHvVmItem" value of type
"System.String" to type "Veeam.Backup.Common.IItem".
Here's my 2-liner:
- Code: Select all
$vm = Find-VBRHvEntity -Name "VMname"
#Start-VBRZip -Folder .\backups\ -Entity "$vm" -Compression 4 -RunAsync -EncryptionKey $enckey -AutoDelete Never
Any assistance will be appreciated.