<p>If you have decided to try the new <a href="https://www.wincert.net/cast/microsoft-releases-windows-admin-center/" target="_blank" rel="noopener noreferrer">Windows Admin Centar</a>, 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:</p>
<p><strong>Connection error &#8211; 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.</strong></p>
<p><img class="alignnone wp-image-4015 size-full" title="WinRM client received an HTTP status code of 502" src="https://www.wincert.net/wp-content/uploads/2020/12/winrm-client-received-an-http-status-code.png" alt="WinRM client received an HTTP status code of 502" width="536" height="225" /></p>
<p>This error usually occurs when you&#8217;re using a proxy server in your environment. It can be easily solved by following these steps.</p>
<p>Open <strong>Command Prompt (CMD)</strong> in an elevated mode <strong>(Run as Administrator)</strong></p>
<p>type the following command:</p>
<p><strong>netsh winhttp show proxy</strong></p>
<p>If you can see that you have a WinHTTP proxy configured please use the following command to turn it off.</p>
<p><strong>netsh winhttp reset proxy</strong></p>
<p>Now type again the first command and you should receive the following input:</p>
<p><img class="alignnone size-full wp-image-4016" src="https://www.wincert.net/wp-content/uploads/2020/12/netsh-winhttp-reset-proxy.png" alt="" width="304" height="66" /></p>
<p>Please have in mind that WinHTTP proxy is different from IE proxy that won&#8217;t be altered with this change.</p>
<p>Hope this helps you to solve The WinRM client received an HTTP status code of 502 error message.</p>