question

AnthonyHunter-2425 avatar image
1 Vote"
AnthonyHunter-2425 asked JagdishKumar-0876 commented

How to set AutoProxy on server core?

I need to configure the autoproxy for my server, but I can't find the right command line or reg settings to give my machine internet access on my companies network.
We normally set this through "Internet Options|Local Area Network Settings" on our other machines.

Any help will be appreciated. Thanks!

Anthony

windows-server-core
· 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.

Did we found any yet for this issue?as i am facing same issue on windows server 2019

Please share if any fix available

0 Votes 0 ·
istein-9475 avatar image
0 Votes"
istein-9475 answered

Hello,

I am facing the same problem, using Windows Server Core 2019 as well.
"Normal" proxy can be configured via:
netsh winhttp set proxy <proxy>:<port>

Reset with:
netsh winhttp reset proxy

However, when trying to use a .pac file (automatic configuration file), the server seems to ignore the settings.
I have tried setting this via the registry via Group Policy Management Console, same way we do on servers with GUI.
The values are registered in the registry, however they do not seem to have any effect.

Would be nice if someone knows how to make this work.

regards,
Øistein

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.

CandyLuo-MSFT avatar image
0 Votes"
CandyLuo-MSFT answered AnthonyHunter-2425 commented

Hi ,

Please use the following script:

 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "http://pac.mycompany/mycompany/filtering.pac" /f

As the picture below:

25316-image.png

To clear that field:

 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "" /f

If you want to use PowerShell, you can run the cmdlet below:

 Set-ItemProperty -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name AutoConfigURL -Value 'http://www.yourdomain.com/config.pac'

25317-image.png

Best Regards,

Candy


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.







image.png (60.7 KiB)
image.png (27.9 KiB)
· 3
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.

Unfortunately still didn't solve my problem. Can't access the internet from my server core machine. Not sure if there is another setting missing.

0 Votes 0 ·

What's the OS version of your server core? Windows server 2016 or windows server 2019?

0 Votes 0 ·

Caption : Microsoft Windows Server Core 2019 Standard
Version : 10.0.17763
BuildNumber : 17763

0 Votes 0 ·
CandyLuo-MSFT avatar image
1 Vote"
CandyLuo-MSFT answered AnthonyHunter-2425 commented

Hi ,

We can use netsh winhttp set proxy to configure the proxy settings for a server core.

Configure your server to use a proxy server:

 netsh Winhttp set proxy <servername>:<port number>

For example: netsh winhttp set proxy 10.0.0.6:8080

To reset the winhttp proxy, enter the following command and press Enter:

 netsh winhttp reset proxy

For detailed information, please refer to the link below:

Quick Reference for Server Core Tasks

Best Regards,

Candy


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




· 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.

That doesn't work, as I need to set the configuration script. Sample url: http://pac.mycompany/mycompany/filtering.pac

This is the setting I need to set:
25212-image.png


0 Votes 0 ·
image.png (14.3 KiB)