VMware Cloud Community
jvm2016
Hot Shot
Hot Shot
Jump to solution

powercli _connection

Hi Luc,

can you suggest something on folowing.not able to connect to windows vc.

pastedImage_0.png

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

What version is that vCenter?

Did you set the configuration to ignore invalid certificates?

Try running the following before doing the Connect-VIServer

[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12'

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.


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

View solution in original post

Reply
0 Kudos
5 Replies
asajm
Expert
Expert
Jump to solution

Hi jvm2016

Check PowerCli vCenter Connection Error – The underlying connection was closed: An unexpected error occurr...

If you think your queries have been answered
Marking this response as "Solution " or "Kudo"
ASAJM
Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

What version is that vCenter?

Did you set the configuration to ignore invalid certificates?

Try running the following before doing the Connect-VIServer

[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12'

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.


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

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

TX I m checking this however we have not  to vcsa as the case mentioned in this thread.

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

thanks luc,

it fixed the issue .if yu can tell me what this command is doing

is it enabling the below tls.??

pastedImage_0.png

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Correct.
The problem is probably that the TLS versions on either side (PS session or vCenter) don't match.

I suspect the PS console is still using TLS 1.0 by default, and newer vCenters don't accept that anymore.


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

Reply
0 Kudos