When running automated scripts or commands against VMware vCenter Server using VMware Cloud Foundation (VCF) PowerCLI, the Connect-VIServer cmdlet hangs indefinitely and does not return a response.
On the client machine, debug output stops at Logging in to server. and fails to progress.
VMware vCenter Server 9.X
VMware Cloud Foundation (VCF) PowerCLI 9.1.0
Windows PowerShell 5.1
Windows PowerShell 5.1 is deprecated in VCF PowerCLI 9.0 and is not supported with VCF PowerCLI 9.1.x, causing client-side compatibility issues.
Connect-VIServer or your automated scripts to confirm that the connection completes without hanging.