if I connect to vcenter then get-vmhost shows I am connected to the hosts. these particular connections are not sufficient to run certain commands (one example: Get-VMHostSnmp wont work for me until i have directly connect to the host)
if I then direct connect to the hosts, get-vmhost (also get-vm) will return duplicate entries
is this not a bug?
EDIT:
another example is Get-EsxCli requires a connection to both vcenter and the host (during my tests) so I'm destined to have duplicates. i am confused how others are looping through hosts and vm's without dealing with duplicates.