jvm2016
Hot Shot
Hot Shot

powercli _connection

Jump to solution

Hi Luc,

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

pastedImage_0.png

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

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

0 Kudos
5 Replies
asajm
Expert
Expert

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
0 Kudos
LucD
Leadership
Leadership

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

0 Kudos
jvm2016
Hot Shot
Hot Shot

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

0 Kudos
jvm2016
Hot Shot
Hot Shot

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

0 Kudos
LucD
Leadership
Leadership

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

0 Kudos