When sending an AMT power command (power on/power off/reset) through the winrm API, sometimes (about 5% of the time) there is a COMException that causes the command sent to failSystem.Runtime.InteropServices.COMException (0x80338012): The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig".Sending the command again after a few seconds sometimes solves this issue, but our software requires a greater success rate than this.The source and destination machine are both running on an internal LAN. The trusted hosts is configured correctly and this happens on a version 4.2.20 AMT machinePlease advise on how to reduce the occurence of this exception happening.
For more complete information about compiler optimizations, see our Optimization Notice.