jeffj2000
Enthusiast
Enthusiast

Exclude a group of VMs in a get-filter regex

Jump to solution

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
0 Kudos
2 Replies
LucD
Leadership
Leadership
0 Kudos
jeffj2000
Enthusiast
Enthusiast

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

0 Kudos