I am trying to run a VMWare powershell script where I grab all the VM's besides the ones with the tag "NO_SNAPSHOT"
To get the list of VM's I run this to remove the ones with the tag "NO_SNAPSHOT"
$VMs = Get-VM| Where-Object { $_.tag -notlike '*NO_SNAPSHOT*'}
However it doesn't work, it still lists all the VM's