VMware Cloud Community
jeffj2000
Enthusiast
Enthusiast
Jump to solution

Exclude a group of VMs in a get-filter regex

Hi. I am having issues excluding a group of VMs from a regex expression in a get-filter. I won't bore everyone and list everything I tried, which has exhausted me. Essentially I am using this call Get-View -ViewType "VirtualMachine" -Filter @{'Name'=???} and I am trying simply trying to find an expression that will get all VMs except say VMs that start with test* or dev* and such. I just cant get any expression to work. Thanks,,,

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

0 Kudos
jeffj2000
Enthusiast
Enthusiast
Jump to solution

Hi. Oh this is exactly what I need. Thank you very much. Thanks,,,

0 Kudos