Could it be that you are experiencing the same issue as in Re: Error running Invoke-Vmscript - An error occurred while sending the request. FullyQualifiedErrorId : Client20_VmGuestServiceImpl_DownloadFileFromGuest_DownloadError,VMware.VimAutomation.ViCore.Cmdlets.Commands.InvokeVmScript
Thank you for your swift response LucD, however I saw this post already, but I didn't figure out where should we add this code to our script exactly or how to use it!
Can you help me with some clue?
Does this issue related to vcenter SSL?(we are using valid SSL certificate)
The code mentioned in that reply, is added to the script where you do the Invoke-VMScript (before the Invoke-VMScript line).
The problem, even with a valid certificate, might be that although the FQDN is mentioned in the certificate, the IP address might not be.
Shall we make any changes on our installed certificates?
does this code damege our current SSL certificates?
No, it will not touch your certificates.
It will just ignore the certificate errors.
When this shows that is indeed an issue with the IP not being in the certificate, you can eventually update the certificates.
Thank You LucD, we had a IP restriction in Esxi firewall.