VMware Cloud Community
virtualumsbals
Contributor
Contributor

Able to login to vCenter 6.5 via vSphere Client but not able to Connect via PowerCLI 6.5.1

Hi,

I have vSphere 6.5 installed in my lab, and I am able to login to vSphere client via IE and perform all actions allowed for my username.

However when I try to connect to the same vCenter using same credentials via VMware PowerCLI 6.5.1 build 5377412, I am getting the following error:

vmware-powercli-vcenter-connect-issue.png

Can you please help me understand what is the reason for this?

Thanks,

Umesh

Tags (1)
0 Kudos
5 Replies
LucD
Leadership
Leadership

Can you do a Get-PowerCLIConfiguration and check what the settings for InvalidCertificateAction are?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
virtualumsbals
Contributor
Contributor

Hi LucD,

I have set it to ignore:

pastedImage_0.png

Regards,

Umesh

0 Kudos
LucD
Leadership
Leadership

Can you try running the following line be3fore doing the Connect-VIServer?

PowerShell by default uses TLS 1.0

[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
virtualumsbals
Contributor
Contributor

Hi LucD,

I tried, but its the same result 😞

vmware-powercli-vcenter-connect-issue.png

Is there a way which version of TLS the server uses and which version my PowerShell console is using ?

Thanks,

Umesh

0 Kudos
LucD
Leadership
Leadership

For the vCenter you use the tool described in vSphere and TLS 1.2


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos