Proxy Setup Script Windows 10

Posted on  by admin

Thank you for writing to Microsoft Community Forums. I appreciate the efforts taken by you in resolving the issue. I understand that you are unable to remove Proxy from the computer.

I’ll certainly assist you with this. However, please let us know:. Are you aware of any changes made to the computer recently?

Is the computer connected any domain/organizations network? We can try disabling proxy settings from the Internet Options and see if that helps.

Refer the steps mentioned below:. Press Windows Logo + R, to open Run dialog box.

Type inetcpl.cpl and click on OK. Now, go to Connections tab, and click on LAN settings.

Clear the checkbox for Use a proxy server for your LAN. Click on OK (Twice).

You can also refer the steps mentioned in the article How to disable automatic proxy caching in Internet Explorer.

You may also want to check the suggestions by Vijin V Replied on March 13, 2013 in the thread Unable to Change IE/Windows Proxy Settings and see if that helps.

Let us know how it goes. Microsoft Community - Moderator .

Want to experience Defender for Endpoint?

Sign up for a free trial. For organizations that use forward proxies as a gateway to the Internet, you can use network protection to investigate connection events that occur behind forward proxies.

Autodiscovery methods:. Transparent proxy.

Web Proxy Auto-discovery Protocol (WPAD).

If you're using Transparent proxy or WPAD in your network topology, you don't need special configuration settings.

For more information on Defender for Endpoint URL exclusions in the proxy, see Enable access to Defender for Endpoint service URLs in the proxy server.

Manual static proxy configuration:. Registry-based configuration.

WinHTTP configured using netsh command: Suitable only for desktops in a stable topology (for example: a desktop in a corporate network behind the same proxy).

Defender antivirus and EDR proxies can be set independently. In the sections that follow, be aware of those distinctions.

When using this option on Windows 10, or Windows 11, or Windows Server 2019, or Windows Server 2022, it is recommended to have the following (or later) build and cumulative update rollup:.

Windows 10, version 1809 or Windows Server 2019, or Windows Server 2022 -

Windows 10, version 1909 - Windows 10, version 2004 -

Windows 10, version 20H2 -

These updates improve the connectivity and reliability of the CnC (Command and Control) channel.

Administrative Templates > Windows Components > Data Collection and Preview Builds > Configure Authenticated Proxy usage for the Connected User Experience and Telemetry Service.

What kind of proxy server do you use?

Set it to Enabled and select Disable Authenticated Proxy usage.

Administrative Templates > Windows Components > Data Collection and Preview Builds > Configure connected user experiences and telemetry:.

Configure the proxy. Administrative Templates > Windows Components > Microsoft Defender Antivirus > Define proxy server for connecting to the network.

Set it to Enabled and define the proxy server. Note, the URL must have either http:// or https://.

For supported versions for https://, see Manage Microsoft Defender Antivirus updates.

Under the registry key HKLM\Software\Policies\Microsoft\Windows Defender, the policy sets the registry value ProxyServer as REG_SZ.

The registry value ProxyServer takes the following string format:. For resiliency purposes and the real-time nature of cloud-delivered protection, Microsoft Defender Antivirus will cache the last known working proxy.

Ensure your proxy solution does not perform SSL inspection.

This will break the secure cloud connection.

Microsoft Defender Antivirus will not use the static proxy to connect to Windows Update or Microsoft Update for downloading updates.

Instead, it will use a system-wide proxy if configured to use Windows Update, or the configured internal update source according to the configured fallback order.

If required, you can use Administrative Templates > Windows Components > Microsoft Defender Antivirus > Define proxy auto-config (.pac) for connecting to the network.

If you need to set up advanced configurations with multiple proxies, use Administrative Templates > Windows Components > Microsoft Defender Antivirus > Define addresses to bypass proxy server and prevent Microsoft Defender Antivirus from using a proxy server for those destinations.

You can use PowerShell with the Set-MpPreference cmdlet to configure these options:.

To use the proxy correctly, configure these three different proxy settings:.

Microsoft Defender for Endpoint (MDE). Endpoint Detection and Response (EDR). This will affect all applications including Windows services which use WinHTTP with default proxy.

Laptops that are changing topology (for example: from office to home) will malfunction with netsh command.

Use the registry-based static proxy configuration.

Open an elevated command line:. Go to Start and type cmd.

Right-click Command prompt and select Run as administrator.

Enter the following command and press Enter:. For example: netsh winhttp set proxy

Windows devices running with version 1803 or earlier needs

URLs that include v20 in them are only needed if you have Windows devices running version 1803 or later.