Bobcares

Configure Proxy Settings on Windows Using Group Policy

by | May 22, 2021

Wondering how to Configure Proxy Settings on Windows Using Group Policy? We can help you.

Most popular browsers and applications use the proxy settings set in Windows to access the Internet.

As part of our Server Management Services, we assist our customers with several Windows queries.

Today, let us see how to centrally configure proxy settings on Windows in a domain using Group Policy.

 

Configure Proxy Settings on Windows Using Group Policy

In order to configure the proxy settings, our Support Techs suggest the following methods.

Set Proxy Settings on Windows via GPO

Originally, to centrally configure Internet Explorer settings via GPO, the Internet Explorer Maintenance (IEM) policy was used.

We can find it under, User configuration –> Policies –> Windows Settings –> Internet Explorer Maintenance.

However, since Windows Server 2012/Windows 8, this section is missing in modern versions.

On the latest Windows versions, we must use Group Policy Preferences (GPP) to configure IE and proxy settings in the GPO Editor.

To do so, we open the domain GPO Editor console, select the OU with the users to which we want to apply proxy settings. Then we create a new policy Create a GPO in this domain and Link it.

We go to User Configuration -> Preferences -> Control Panel Settings -> Internet Settings. In the context menu, select New -> Internet Explorer 10.

On the other hand, on Windows 10/Windows Server 2016, we need to use the Internet Explorer 10 item.

Although there is no separate option for Internet Explorer 11, the Internet Explorer 10 policy should apply to all versions of IE above 10.

<FilterFile lte=”0″ max=”99.0.0.0″ min=”10.0.0.0″ gte=”1″ type=”VERSION” path=”%ProgramFilesDir%\Internet Explorer\iexplore.exe” bool=”AND” not=”0″ hidden=”1″/>

We will get Group Policy Preferences IE forms, almost completely identical to the Internet Options settings in the Windows Control Panel.

For example, we can specify a home page (General tab -> Home page field).

To save and apply a specific setting, ensure to press F5. A green underline of a parameter means that this IE parameter will apply via GPP.

Similarly, we can specify proxy settings in the Connections tab and click the Lan Settings button.

We configure the proxy server in one of the following ways:
  • Automatically detect settings – automatic detection of settings using the wpad.dat file
  • Use automatic configuration script – auto-configuration script (proxy.pac)
  • Proxy Server – the IP address or DNS name of the proxy server is specified directly in the policy settings. We use it.

Check the option Use a proxy server for our LAN. Then we specify the IP/FQDN name of the proxy server and the connection port in the corresponding Address and Port fields.

If we enable the Bypass proxy server for local addresses option, we prevent applications from using a proxy server when accessing local resources.

Addresses of other resources, for access to which we do not need to use a proxy, must be specified manually. Press the Advanced button and add these addresses to the field Do not use proxy servers for addresses beginning with in the following format: 10.1.*;192.168.*;*.bobcares.com;*.local.net.

We can also set proxy settings in Google Chrome through the GPO using special administrative templates.

After we save the policy, we can view the InternetSettings.xml file with the specified browser settings in the policy folder on the domain controller:

\\UKDC1\SYSVOL\bobcares.com\Policies\{PolicyGuiID}\User\Preferences\InternetSettings\InternetSettings.xml

GPP allows to more finely target policy to users/computers. For this, GPP Item Level Targeting is used. Go to the Common tab, enable the option Item-level targeting -> Targeting.

In the form that opens, we specify the conditions for applying the policy. We can use our own logic to assign proxy parameters.

It remains to link the proxy policy to the AD container with the users and update policy settings on them.

After applying policies on the users’ computers, we use the new IE settings.

We can check the current proxy settings on Windows 10 in the Settings -> Network and Internet -> Proxy.

Configure Proxy Setting via Registry and GPO

In addition, we can configure IE settings through the registry using GPP policies.

For example,

To enable a proxy server, we configure the following registry parameter in the registry key HKEY_CURRENT_USER\Software\Microsoft\ Windows\CurrentVersion\Internet Settings.

In the GPO editor, under User Configuration -> Preferences -> Windows Settings -> Registry and create three registry parameters under the specified reg key:

  • ProxyEnable (REG_DWORD) = 00000001
  • ProxyServer (REG_SZ) = 192.168.0.11:3128
  • ProxyOverride (REG_SZ) = https://*.bobcares.com;192.168.*;10.1.*;*.contoso.com;<local>

We create proxy policies not per-user, but for the entire computer. To do so, we use the GPP settings from the GPO section Computer Configuration -> Preferences -> Windows Settings -> Registry.

Set the same registry parameters under the registry key HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings.

Change WinHTTP Proxy Settings via GPO

Some system services or applications do not use the user’s proxy settings by default. For such applications to work, we configure the WinHTTP proxy settings in Windows.

To check if WinHTTP proxy is configured on our computer, we run:

netsh winhttp show proxy

The “Direct Access (no proxy server)” output means no proxy is set.

We can manually set a proxy for WinHTTP on our computer. To do so, we run:

netsh winhttp set proxy proxy.bobcares.com:3128 “localhost;10.1.*;192.168.*;*.bobcares.com”

Or we import proxy settings from the user’s Internet Explorer settings:

netsh winhttp import proxy source=ie

However, this will not configure WinHTTP through the GPO.

The only way is to configure WinHTTP proxy on the reference computer.

Then we export the value of the WinHttpSettings parameter from the registry key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections.

Finally, we deploy this parameter to domain computers through the GPP registry extension.

[Need help with the procedures? We are available 24*7]

 

Conclusion

In short, we saw how our Support Techs configure Proxy Settings on Windows using Group Policy.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF