Connecting to remote server failed with the error message: The WinRM client received an HTTP status code of 502 from remote WS-Management service. For more information, see the about_Remote_Troubleshooting Help topic. It was running the command ‘Discover-ExchangeServer -UseWIA $true -SuppressError $true’
Bu hatada aslında bize ipucu veren bölüm HTTP 502 statüs kodunun alınmasıdır. Burada winhttp proxy ile ilgili bir durum olduğunu gösteriyor.
Windows Server 2008’de winhttp düzenlemeleri netsh komutu ile yapılmaktadır.
Netsh winhttp show proxy
Bu komut ile işletim sisteminin kullandığı bir winhttp proxy olup olmadığını görebiliriz.
Ayrıca,
HKEY_LOCAL_MACHINE SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections WinHttpSettings
Registry key üzerinde de bu proxy adresini görebiliriz.
Burada mevcut EMC ve EMS açılmama problemini gidermek için, proxy adresini kaldırmamız gerekmektedir.
Aşağıdaki komut ile bunu kaldırabiliriz.
Netsh winhttp reset proxy
Bu komutun ardından, EMC yada EMS tekrar açılmaya çalışıldığında, başarılı bir şekilde açıldığını göreceksiniz.
