Walker News

How To Configure Windows Update Proxy Server Settings In Windows Vista SP1?

Windows Update requires two other clients to work, i.e. WinHTTP (Windows HTTP Service) and BITS (Background Intelligent Transfer Service) to scan and download the available updates from Microsoft servers.

Interestingly, none of these services is using Internet Explorer proxy setting. Indeed, Windows Update clients refers to WinHTTP proxy server setting that is either configured manually by user or automatically updated by Web Proxy Auto Detect (WPAD) feature of the connecting network.

Therefore, laptop users who access Internet via proxy server in corporate network with WPAD feature enabled are likely have problem to run Windows Update after switching to direct network (e.g. home broadband, public WIFI, etc) or other network that enforce proxy server for Internet access but disable Web Proxy Auto Detect setting.
WPAD setting is normally configured by network administrator in either DNS (Domain Name System) or DHCP (Dynamic Host Configuration Protocol) option.

In case WinHTTP proxy server setting is not updated, you have to do it manually.
The following guide to disable / enable WinHTTP proxy server is based on Windows Vista SP1. Anyway, it should be working on other Windows versions that support netsh command set.

To disable WinHTTP proxy server

How to disable or configure Windows Update proxy settings?Execute netsh winhttp show proxy to check if you have a proxy server configured for WinHTTP. To disable the WinHTTP proxy setting:

1) Open an elevated Command Prompt window (i.e. Command Prompt window with real Administrator privilege).

2) Execute netsh winhttp reset proxy to reset WinHTTP proxy setting to DIRECT (i.e. to connect to Internet directly without using any kind of proxy server).

Configure WinHTTP proxy setting

If the connecting network does not enable Web Proxy Auto Detect setting but requires proxy server (e.g. IP 188.8.6.7 and port number 80) to access Internet:

1) Open a Command Prompt window with real Administrator privilege.

2) Execute netsh set proxy 188.8.6.7:80.

To view netsh help and example on WinHTTP proxy configuration, execute this
netsh winhttp set proxy help

According to the netsh winhttp help, it’s possible to define different proxy server for http and/or https connection.

Custom Search

  1. jj 09-08-09@15:51

    “Execute netsh set proxy 188.8.6.7:80”
    should be…
    “Execute netsh set winhttp proxy 188.8.6.7:80”

  2. Walker 09-08-09@19:10

    Thank you for highlighting the typo.

  3. Alberto G 21-09-09@01:31

    Thank you for this bit of information, it helped me a great deal to understand something that was driving me mad.
    Autoruns and possibly other stuff by Sysinternals use the same settings. I believed my computer was hijacked although all the malware scans I did and the manual investigation of registry keys, autorun entries and antirootkit scans (above all gmer) all gave the same result: my computer was clean. But you ignore one single thing and you lose hours. That happened to me, until I came to your site after the nth google search, and everything was once again fine after having cleaned the winhttpd proxy.

    Thanks again, your info have proven valuable to me.

  4. King Kong 04-01-10@12:02
  5. Fabio 18-02-10@23:55

    Thanks for your article. I follow you guide to setup proxy in a windows 7 workstation but I receive “Access denied” when I run windows update.

    Why? is there a way to setup username/password for proxy?

    Thanks in advance!

  6. Walker 19-02-10@14:52

    I am not sure why your Windows Update pops up “access denied”.

    If you see this while running netsh command, that is caused by not running command prompt window with elevated privilege.

  7. Dave Beel 06-07-10@18:30

    You need to run your Command Prompt as an administrator. Right click on the cmd icon and Run as Administrator.
    You will then not get Access Denied.

  8. subin gajurel 01-11-10@15:13

    is it workin for windoes seven as well??
    coz while doin it i get the error command not found
    help me out !!!

  9. Tareq Battat 26-03-11@20:22

    I have windows 7, set and reset proxy and testing it with show command going fine, but this didn’t reflecting and affecting IE proxy setting and no changes happened to it’s configuration. Please I need to enable/disable proxy of IE from a batch file.

  10. Walker 26-03-11@21:04

    IE proxy settings is different from WinHTTP proxy setting, therefore whatever changes made to WinHTTP does not affect IE proxy server setting.

  11. thomas 22-04-11@22:27

    thanx for this article.

    you may reconsider, whether the BLACK background is really needed.
    it is no fun to read through this side.

    jast as a hint…
    best wishes,
    thomas

  12. Walker 23-04-11@17:33

    @Thomas, you’re not the first but the certainly the last to comment about the black theme!

    After 4+ years, the body is now whiten!

  13. Max 30-08-11@19:56

    but where in the registry does that value get saved?

  14. Chris 26-10-11@06:47

    “laptop users who access Internet via proxy server in corporate network with WPAD feature enabled are likely have problem to run Windows Update after switching to direct network”

    this is the exact issue I’ve been having but with Windows XP. I even logged a help request via microsoft, which ended up being no help.

    Of course with XP it’s done via proxycfg.exe, but even there the connection was listed as no proxy. I simply “reset” the connection to be no proxy again (even though it was already set like that) and now Windows Update works fine and doesn’t look for my work proxy server anymore.

  15. Yagyesh 06-12-11@00:07

    I am using Windows 7 Pro. I have set Proxy Server but only for “http” and “https”. Now when I run the cmd with elevated privileges, and run the command “netsh winhttp show proxy” it says, “Direct access “. Why is it like that, and how to see these settings through the command line? Thanks.

  16. Vittorio 16-03-12@21:09

    Thanks a lot!

  17. Gao Yan 20-09-12@05:19

    Awesome write-up. Thank you Walker!

2020  •  Privacy Policy