How can I query the host profile and associated hosts with it? The closest thing I get is this.
But, I am not getting the hostname and get only host value.
Sorry about necroing a 3 year old thread, but is there a reference back to Auto Deploy rules? We do not apply Host Profiles directly to clusters or ESXi hosts, so there is not a MoRef to those objects.
I know I can just run Get-DeployRuleSet to see which Host Profiles are referenced to which rules, but looking for a one-liner that will do both for me, if possible.