VMware Cloud Community
tdubb123
Expert
Expert

connect-srmserver errors

I can connect oto vcenter but when i manually connect to srm server even with administrator@vsphere.local creds

gettting this

Screen Shot 2020-01-08 at 8.25.00 AM.png

0 Kudos
5 Replies
LucD
Leadership
Leadership

Did you set PowerCLI to ignore an invalid certificate?

Check with Get-PowerCLIConfiguration.

Is there a valid certificate for SRM server?

Try running the following before doing the Connect-SrmServer

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

     [System.Net.SecurityProtocolType]::Tls11,

     [System.Net.SecurityProtocolType]::Tls12


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

0 Kudos
tdubb123
Expert
Expert

i tried

same error

Screen Shot 2020-01-08 at 8.55.36 AM.png

0 Kudos
LucD
Leadership
Leadership

Your InvalidCertificateAction says 'Unset', not 'Ignore'


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

0 Kudos
tdubb123
Expert
Expert

you caught it. Thanks.

DO i need to set this in my profile everytime I open powershell_ise?

0 Kudos
LucD
Leadership
Leadership

No, it is kept in an .xml by PowerCLI.

Just make sure you do the setting in the correct Scope.

There are 3: Session, User and All Users.
You want to set it in User or All Users to make it permanent
If a lower scope doesn't have a setting, i.e. Unset, it inherits the setting of the higher scope


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

0 Kudos