Proxy Keeps Turning On in Windows 11? How to Stop It for Good

Avatar photo
Proxy Keeps Turning On on a Windows 11 laptop in a home office

Why a proxy keeps enabling itself

A proxy sits between your PC and the internet, and home users rarely need one. If a proxy keeps turning on in Windows 11, pages may fail to load, Windows Update can stall, and you may see “Your organization” language on a PC that is not a work PC.

Windows stores more than one proxy configuration. The Settings page under Network & internet is the user-facing WinINET side, which browsers and many apps follow. A second configuration, WinHTTP, is used by some Windows services, including parts of Windows Update. Clearing one side does not always clear the other.

Automatic detection uses WPAD to look for a proxy on the network. A setup script, also called a PAC file, is a URL that tells Windows which proxy to use for each site. A leftover script or a WPAD response can put a proxy back after you turned the manual switch off.

A VPN, antivirus HTTPS scanner, or “optimizer” can write the setting at startup. Malware can do the same, especially when the address is one you do not recognize. A work or school account can also push the setting after every sign-in.

Microsoft explains the three setup methods (automatic, script, and manual) in Use a proxy server in Windows. The fixes below turn those options off and stop them from coming back.

Before you start

Write down what is currently on the Proxy page before you change it. Open Settings > Network & internet > Proxy and note whether automatic detection is on, whether a setup script URL is listed, and whether a manual address and port are filled in. If a proxy keeps turning on after you already cleared those options, you will need this record later.

If this is a work or school PC, copy the address or script and confirm with IT before you turn it off. Fighting a managed proxy usually fails at the next sign-in.

Look at the proxy address itself. A familiar company server is different from a random IP address or a host name you have never seen. An unknown address is a reason to take the malware steps seriously.

Create a restore point if you will reset the network stack or uninstall security tools. Press the Windows key, type Create a restore point, and create a point on your system drive.

Windows 11 quick-fix checklist for proxy keeps turning on

Fixes when a proxy keeps turning on

Change the Settings page first, then reset WinHTTP, then look for the app or policy that is rewriting the value.

1. Clear the manual proxy server settings

Start with the manual switch, because a leftover server address will keep routing traffic even after you toggle other options.

  1. Press Windows key + I and go to Network & internet > Proxy.
  2. Under Manual proxy setup, select Set up.
  3. Turn off Use a proxy server.
  4. Clear the address and port boxes if they are filled in, then select Save.

If this PC should use a workplace proxy, copy those proxy server settings first and confirm them with IT before you turn anything off. After you save, reopen the page and confirm the address did not reappear immediately. If it comes back within a few seconds, an app or policy is already rewriting it.

Success looks like a direct connection: pages load without a proxy error, and the manual address box stays empty after a restart. If those proxy server settings reappear within a minute, an app or policy is already rewriting them. If browsers work but Windows Update does not, go to Fix 4 after you finish Fixes 2 and 3.

2. Turn off Automatically detect settings

That automatic-detection switch tells Windows to look for a proxy using WPAD. On a home network that can produce odd results, and some apps turn the switch back on.

  1. Open Settings > Network & internet > Proxy.
  2. Under Automatic proxy setup, turn off Automatically detect settings.

Browse for a few minutes and open the page again. If the switch is back on, an app, a script, or a policy is rewriting it. Keep going with the fixes below rather than flipping the switch in a loop.

On a home PC you almost never need this switch. Leaving it on is the most common reason Windows keeps looking for a proxy you never configured. Turn off Automatically detect settings, test your usual sites, and only turn it back on if a network administrator tells you the network uses WPAD.

3. Turn off Use setup script

A PAC file can put the proxy back on every time you connect.

  1. On the same Proxy page, next to the setup script option, select Set up.
  2. Turn off the script option.
  3. Delete any script address in the box, then select Save.

If you need a work PAC file, leave this on only when IT has given you the script address. A random or unfamiliar URL in that box is a warning sign, especially if the proxy comes back after you remove it.

Reopen the page after you save and after a restart. If you turned off Use setup script and the URL still returns, something is writing it back. Find that app, task, or policy instead of deleting the URL over and over.

4. Run netsh winhttp reset proxy

Windows has a second proxy for WinHTTP, used by some services and updates. Clearing the Settings page does not always clear this one.

  1. Press Windows key + X and select Terminal (Admin).
  2. Show the current value:
netsh winhttp show proxy
  1. If anything other than direct access is listed, reset it:
netsh winhttp reset proxy
  1. Run netsh winhttp show proxy again. You want to see direct access (no proxy server).

Microsoft documents these commands in the netsh winhttp reference. After the reset, try Windows Update and a browser to confirm both paths are direct.

If show proxy still lists a server after you run netsh winhttp reset proxy, a policy or a management tool is applying it again. In that case the reset will not last, and you should check the account and policy steps in Fix 9.

5. Check the older Internet Options page

The classic Control Panel page can still show a proxy that Settings did not list clearly, and some installers still write to it.

  1. Press Windows key + R, type inetcpl.cpl, and press Enter.
  2. Open the Connections tab and select LAN settings.
  3. Untick Use a proxy server for your LAN.
  4. Untick Use automatic configuration script if you are not on a managed work network.
  5. Match this to what you chose in Settings: if you turned automatic detection off, untick it here as well, then select OK.

Close the dialog and reopen it to make sure the boxes stay clear. If LAN settings show a server that Settings did not, clear it here, then confirm both views agree. After you change either page, restart once and check both again.

6. Remove VPNs and security tools that rewrite the proxy

Free VPN clients, some antivirus HTTPS-scanning features, and network “optimizers” are frequent reasons the proxy comes back after a restart.

  • Disconnect every VPN, then turn the VPN app’s proxy or “virtual adapter” options off. Uninstall the app if the setting returns.
  • In your antivirus, disable HTTPS scanning or “web shield” long enough to test, or check its support page for a proxy option.
  • Uninstall toolbars, download managers, and PC cleaners you do not remember installing.

Some of those tools install a local proxy so they can inspect HTTPS traffic. That can be legitimate, but it should turn off when you exit the app. If a proxy keeps turning on after you uninstall the tool, leftover configuration is still writing the value.

If a VPN also leaves you with no wireless radios, our guide to airplane mode not turning off in Windows 11 covers the network stack side of that problem.

7. Reset the network stack

If the switches stay off but traffic still behaves as if a proxy is in the way, reset the network components.

  1. Open Terminal (Admin).
  2. Run these commands one at a time, pressing Enter after each:
netsh winsock reset
netsh int ip reset
ipconfig /flushdns
  1. Restart the PC.

Windows also offers Settings > Network & internet > Advanced network settings > Network reset, which reinstalls adapters and returns them to defaults. You will need to reconnect to Wi-Fi afterward. If the PC connects but DNS fails, use our guide to the DNS_PROBE_FINISHED_NXDOMAIN error.

These commands do not replace clearing the Proxy page or WinHTTP. Use them after Fixes 1 through 4 when pages still fail, then confirm the Proxy page is still clear after the restart.

8. Scan for malware and unwanted programs

A proxy that points to an unknown IP address or a strange port is a classic hijack.

  1. Open Windows Security > Virus & threat protection and run a Quick scan, then a Full scan if the first one is clean.
  2. In Settings > Apps > Installed apps, remove anything you do not recognize, especially tools that mention “browse,” “speed,” or “clean.”
  3. Check Task Scheduler for tasks that run unknown programs at logon.

Do not download random “proxy repair” utilities. Use Windows Security or another well-known security product. After a cleanup, clear the Proxy page again if needed, and run netsh winhttp show proxy to confirm WinHTTP is still direct. Also look at Settings > Apps > Startup for network filters or leftover VPN helpers.

9. Check a work account, a new user, and Group Policy

If the proxy comes back only after you sign in, an account or policy is applying it.

  • If you use a work or school account, the organization may require a proxy. Confirm with IT before you fight the setting.
  • Create a local user under Settings > Accounts > Other users, sign in, and see whether the proxy stays off there.
  • On a managed PC, run gpedit.msc only if your edition includes it, and look for proxy policies. Do not change company policy without approval.

If the proxy stays off on the local account, the system itself is fine and the work profile or a per-user app is the source. Sign back into the main account and review startup apps, scheduled tasks, and any management agent.

If you also share this PC’s connection, confirm the proxy is off before you troubleshoot sharing. A hijacked proxy can make a mobile hotspot not working problem look like a hotspot fault.

How to prevent it from coming back

On a home PC, leave automatic detection off, leave the setup script off, and leave the manual address empty unless you have a reason to use a proxy. After you install a VPN or a new antivirus, check the Proxy page once.

Be careful with free VPNs, browser toolbars, and “PC cleaner” downloads. Install security software from the vendor’s own site, and use the vendor’s cleanup tool when you switch products. If this is a work PC, save the official proxy server settings and only clear them if IT confirms you should.

After a major Windows update, glance at Settings > Network & internet > Proxy again. If a proxy keeps turning on after that, start again at Fixes 2, 3, and 4.

Deeper repair options

Use these when the proxy returns on every account, after a malware scan, and after you have already reset WinHTTP.

A clean boot helps you catch the app that rewrites the setting at startup. Press Windows key + R, type msconfig, and press Enter. Hide all Microsoft services, disable the rest, disable non-Microsoft startup apps, and restart. If Automatically detect settings or Use setup script stays off after the clean start, turn items back on in small groups until the value returns.

Event Viewer can show a failed network policy, but Task Scheduler or a leftover VPN service is often the better clue. Check Windows Logs > System around startup if a management agent is reapplying settings.

An in-place Windows 11 repair is a last resort for a proxy problem. Try the Settings page, netsh winhttp reset proxy, a network reset, a malware scan, and a new account first. Repair system files with DISM and SFC only if the PC has wider component-store damage.

Quick reference

Use this table when the proxy comes back after you already flipped the Settings switch.

SymptomMost likely fix
A server address and port are filled inClear the manual proxy address and port (Fix 1)
The automatic switch flips back onTurn off automatic detection, then find the app rewriting it (Fixes 2, 6, 9)
A PAC URL is listedTurn off the setup script option and clear the address (Fix 3)
Browsers work, but Windows Update does notReset the WinHTTP proxy (Fix 4)
Settings and Internet Options disagreeClear both the Settings page and LAN settings (Fixes 1 and 5)
Unknown proxy address after a software installUninstall the app and scan for malware (Fixes 6 and 8)
Value returns only after you sign inCheck the work account, a new user, or policy (Fix 9)

FAQ

Why does a proxy keep turning on in Windows 11?

The usual causes are automatic detection, a leftover setup script, a VPN or antivirus rewriting the value, a separate WinHTTP proxy, or a work policy. Start on Settings > Network & internet > Proxy, then reset WinHTTP. If the value returns after a restart, look for an app, a scheduled task, or a managed account.

Should I leave Automatically detect settings on at home?

On a home PC you do not need it. Leaving it on can make Windows keep looking for a WPAD proxy. Turn it off if you are not on a managed network and the proxy keeps coming back. You can turn it back on later if a network requires it.

What does netsh winhttp reset proxy do?

It clears the WinHTTP proxy used by some Windows services and returns them to a direct connection. It does not change every toggle on the Settings page, so you should still review those options. Run netsh winhttp show proxy afterward to confirm the result is direct access.

Is it safe to turn off Use setup script?

Yes, if you are not required to use a company PAC file. If IT gave you a script address, turning it off can block work sites until you put it back. On a home PC, an unexpected script URL is a reason to clear it and then check for unwanted software.

Can malware turn a proxy back on?

Yes. If a proxy server you do not recognize keeps returning, run a full scan and remove unknown apps before you spend more time on Settings toggles. After the scan, clear any leftover proxy server settings again and reset WinHTTP, because cleanup tools do not always remove every leftover value.

Why do browsers work when Windows Update does not?

Browsers usually follow the Settings (WinINET) proxy, while some Windows services follow WinHTTP. If those two disagree, you can browse the web and still fail to update. Check both the Proxy page and netsh winhttp show proxy, then reset WinHTTP if it is not set to direct access.

Will a network reset remove my saved Wi-Fi passwords?

A full Network reset in Settings reinstalls adapters and returns them to defaults, so you will need to reconnect to Wi-Fi. The netsh winsock reset and netsh int ip reset commands are narrower, so use those first.

Sources

Total
0
Shares
Leave a Reply

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

Previous Post
Sticky Keys Turning On on a Windows 11 laptop in a home office

Sticky Keys Turning On by Itself in Windows 11? How to Stop It

Next Post

Windows 11 Dark Mode Not Working? How to Make It Stick

Related Posts