The WinRM client received an HTTP status code of 502
If you have decided to try the new Windows Admin Centar, a browser-based management tool that allows you to manage an entire Windows Server, Windows 10 desktops, and even Azure Stack HCI infrastructure you could run into the following error:
Connection error – Connecting to remote server %FQDN Server Name% failed with the following error message: The WinRM client received an HTTP status code of 502 from the remote WS-Management service.
This error usually occurs when you’re using a proxy server in your environment. It can be easily solved by following these steps.
Open Command Prompt (CMD) in an elevated mode (Run as Administrator)
type the following command:
netsh winhttp show proxy
If you can see that you have a WinHTTP proxy configured please use the following command to turn it off.
netsh winhttp reset proxy
Now type again the first command and you should receive the following input:
Please have in mind that WinHTTP proxy is different from IE proxy that won’t be altered with this change.
Hope this helps you to solve The WinRM client received an HTTP status code of 502 error message.