Matt and Mark nailed it. There was no need to execute two separate get-vmhost queries when I already had all the information. I looked into the get-cluster but since I am not trying to get a list of the clusters (I am essentially saying give me the vm's that are NOT on these specific clusters), I don't know of what value it would be. I will take a look at it and compare it with the performance tips you already gave me. Thank you, both.
↧