marcohorstmann / MyVeeamReport

21 stars 1 forks source link

Exclude of VMs doesn't work proper #6

Closed marcohorstmann closed 1 year ago

marcohorstmann commented 1 year ago

copied from shawns blog post: Hi! Just started using your script! It works great, Thanks much! I am however having an issue excluding systems.

I’ve tried multiple versions of this, but it still doesn’t exclude them from the report

$showProtectedVMs = $true
# Exclude VMs from Missing and Successful Backups sections
# $excludevms = @(“vm1″,”vm2″,”*_replica”)
$excludeVMs = @(“_replica”,”Z-VRA”,”test”,”image”*,”base”)

i’ve also tried

$showProtectedVMs = $true
# Exclude VMs from Missing and Successful Backups sections
# $excludevms = @(“vm1″,”vm2″,”*_replica”)
$excludeVMs = @(“*_replica*”,”*Z-VRA*”,”*test*”,”*image*”*,”*base*”)

Any help with this would be great!

Thanks Jeff

marcohorstmann commented 1 year ago

Hi, I tried this and it worked for me.

# $excludevms = @("vm1","vm2","*_replica")
$excludeVMs = @("*-ex01","*-linux")

Maybe reporter used wrong quotations? On my computer there is a difference between " (this works) and ” .

Closing because I cannot reproduce it.