
Attempting to use VMware vSphere PowerCLI’s Connect-VIServer to a vCenter instance fails with: “The underlying connection was closed: An unexpected error occurred on a send.”
Problem You have VMware vSphere PowerCLI version 5.1.0.4977 installed: You attempt to connect to a vSphere vCenter 6.7: … using the Connect-VIServer cmdlet but it immediately fails with: PowerCLI C:Program Files (x86)VMwareInfrastructurevSphere PowerCLI> Connect-VIServer vCenter.contoso.local