Versions:
Powershell: 5.1.15063.1805
PowerCLI: 11.5.0 build 14912921
(side note: I upgrade the powercli version on this machine after I started running into this. I don't recall what version was previously installed)
Get-View -ViewType HostSystem | Select Name
- Returns a list of all the hosts on the vCenter
Get-View -ViewType VirtualMachine | Select Name
- Returns a list of all the virtual machines on the vCenter
get-vmhost and get-cluster returns the same sequence error.
When I run :
get-vmhost -name XXXXXXXX
The return is:
Get-VMHost Sequence contains more than one matching element
but also includes:
get-vmhost : 12/6/2019 12:51:16 PM Get-VMHost VMHost with name 'XXXXXXXXXXXXXX' was not found using the specified filter(s).
Also, both the machine with powershell 5 and powershell 6 only get this issues on one vCenter. With the other four vCenters there are no problems running these commands.