Tried it but now working

May 20, 2010 at 8:54 PM
I tried your example, following is my PS1 Add-PSSnapin vCenterLabManagerSnapIn $url = "https://labman04/LabManager/SOAP/LabManagerInternal.asmx" $usr = "labadmin" $pwd = "P@55w*rd" $lm = get-lminstance -username $usr -Password $pwd -apiurl $url $lm.soapclient.GetOrganizations($lm.AuthHeader) | foreach {$} I get this Exception calling "GetOrganizations" with "1" argument(s): "Could not establish trust relationship for the SSL/TLS secure channel with authority 'labman04'." At :line:10 char:31 + $lm.soapclient.GetOrganizations <<<< ($lm.AuthHeader) | foreach {$} Probably something basic but I am stuck
Jul 15, 2010 at 1:39 AM

Do you have a valid SSL certificate?


Oct 8, 2010 at 4:09 AM

Lab Manager's certificate is self signed. So you can install it to your local certificate store to trust it or you can ignore SSL errors in your code. Here is an example of how to ignore SSL errors with PowerShell: