Hi,
We have a Vcenter(6.5) which includes afew Esxi 6.0 servers(all the servers configured same with 6.0 version, but the server locations are different), we need to send some commands to VM(windows or linux) through powercli and Invoke-VMScript cmdlet,
actually it is working fine but just on some of these esxi servers and their VMs, but for other esxi servers' VMs the Invoke function is freezing(20-30sec) and then returns following error when we send a command:
Invoke-VMScript -ScriptText "pwd" -VM $VMName -GuestCredential $DCLocalCredential
Invoke-VMScript : 7/9/2019 11:10:25 PM Invoke-VMScript An error occurred while sending the request.
At line:1 char:1
+ Invoke-VMScript -ScriptText $check -VM $VMName -GuestCredential $DCL ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-VMScript], ViError
+ FullyQualifiedErrorId : Client20_VmGuestServiceImpl_DownloadFileFromGuest_DownloadError,VMware.VimAutomation.ViC
ore.Cmdlets.Commands.InvokeVmScript
any solution?