Hi LucD et al. -
In my functions, I am trying whenever possible to substitute get-view for get-vm (and get-vmhost, get-cluster, get-datacenter, etc.), because it's soooo much faster.
I still can't figure out the equivalent to:
$ get-vmhost | get-vm
For example, if I have a vmhost object retrieved via get-view, how do I pipe that (or otherwise reference it) to get all the guests on that host?
$ Get-View -ViewType HostSystem -Filter @{Name="hostname.domain.local"} | get-view -ViewType VirtualMachine # this does not work, obviously
(and yes, I'd add -Property once I figured out which properties I need )
I'm on 6.5.0.2, if that makes any difference.
Thanks!
Paula