As it seems, no. But using another loop is not a bad solution.
Should be something like:
Get-VM -Name * | ?{$_.Tag -ne "Test"}
Or if VirtualMachine
doesn't have a Tag
property, you should try with Get-View
:
Get-View -Name * | ?{$_ .Tag -ne "Test"} | Get-VM