Applications Systems
AppInsight for Exchange: WinRM testing failed
Unable to connect to AppInsight for Exchange with the following error: WinRM testing failed with the following error: Connecting to remote server failed with the following error message : 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
First published date
Last published date
Overview
Unable to connect to AppInsight for Exchange with the following error:
WinRM testing failed with the following error:
Connecting to remote server failed with the following error message : 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". For more information, see the about_Remote_Troubleshooting Help topic.
PowerShell Exchange web site test was successful.
Product section
Cause
Resolution
Confirm the configuration on the Exchange Server
- RDP to the Exchange Server that you are attempting to register for monitoring.
- Open a PowerShell session.
- Run the following command
winrm get winrm/config/listener?Address=*+Transport=HTTPS
- Confirm that ListeningOn lists IP addresses that it is listening on. It SHOULD NOT have "null" like the image below:
If you have the same as the above image, then this issue can be caused by an incorrect Group Policy Configuration.
Confirm the following in your Group Policy
- Open your Group Policy Editor.
- Go to Computer > Policies > Windows Components > Windows Remote Management (WinRM) > WinRM Service.
- Check the configuration of the "Allow automatic configuration of listeners" policy.
- Verify that the Policy configuration is correct.
Note: There should not be quotes entered into the fields available. The configuration should look like the following:
If you need to change this policy, you will need to force a Group Policy Update on the Exchange server and try running the AppInsight Configuration from SAM again.