WinRM discovery error "WinRM cannot complete the operation"


Description

WinRM discovery error "WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet."

Release or Environment

All supported environments.

Cause

The error is due to the winhttp proxy configured on the MID server.

Check wintttp proxy configuration via command line command:

netsh winhttp show proxy

Example output:

Current WinHTTP proxy settings: 

Proxy Server(s) :  proxy.example.net:8080
Bypass List     :  (none)

Resolution

Note: consult with your windows team before making any changes.

To reset the winhttp proxy configuration run command:

netsh winhttp reset proxy

New proxy configuration should show as:

Current WinHTTP proxy settings: 

Direct access (no proxy server).

Additional Information