question

BorisBirneder-5315 avatar image
0 Votes"
BorisBirneder-5315 asked EricC-0718 edited

Proxy Settings not Working in Windows Server Core 2019

Hello,

we installed 2 new Windows Server 2019 Core Edition for Exchange 2019.

It is not possible to get Microsoft Updates through a Proxy. The Update Service ignores the global proxy settings and tries to connect external IPs directly.
Another Windows Server 2019 with Desktop Experience is downloading Updates without any problems

We tried

netsh winhttp set proxy = <IP of Proxy>:80

We also tried to set manually the proxy in the User Part of the registry without success.

The Core Server is using the proxy to get a list of new updates.

But when we try to download the updates, the server is ignoring the proxy settings and tries to connect to external servers (and this is blocked by the firewall)

166884-proxy.png



Thankyou for help and kind regards Boris

windows-server-2019windows-server-core
proxy.png (91.7 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I was having this same problem, just with Server 2016 Core.

I found this article that ended up working for me:
https://daveshap.github.io/DavidShapiroBlog/powershell/kb/2021/03/12/install-powershell-modules.html

Basically the solution is this PowerShell code:

 $proxy = '<YOUR CORPORATE PROXY HERE>'  # update this
 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
 [system.net.webrequest]::defaultwebproxy = new-object system.net.webproxy($proxy)
 [system.net.webrequest]::defaultwebproxy.credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
 [system.net.webrequest]::defaultwebproxy.BypassProxyOnLocal = $true


Hope this helps.

Regards,
Eric


0 Votes 0 ·
LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello BorisBirneder

It is a bit more complicated than that. I would recommend the next thread where all the process is related, included inclusion for PAC files.

https://docs.microsoft.com/en-us/answers/questions/94682/how-to-set-autoproxy-on-server-core.html



--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BorisBirneder-5315 avatar image
0 Votes"
BorisBirneder-5315 answered

Hi,

thankyou for the link.

But they also found no solution for this problem.

"The values are registered in the registry, however they do not seem to have any effect."

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.