Article ID: 900935 - Last Review: June 21, 2011 - Revision: 3.0 How the Windows Update client determines which proxy server to use to connect to the Windows Update Web site
On This PageINTRODUCTIONThe Microsoft Windows Update client program requires Microsoft Windows HTTP Services (WinHTTP) to scan for available updates. Additionally, the Windows Update client uses the Background Intelligent Transfer Service (BITS) to download these updates. Microsoft Windows HTTP Services and BITS run independently of Microsoft Internet Explorer. Both these services must be able to detect the proxy server or proxy servers that are available in your particular environment. This article describes the various proxy server detection methods that are available. Additionally, this article describes the situations where Windows Update uses a particular proxy server detection method. MORE INFORMATIONThe Automatic Updates service is configured to download and install updates from the Microsoft Windows Update Web siteThe Automatic Updates service can automatically download and install updates from the Windows Update Web site. The Automatic Updates service does not require user interaction because this service runs in the context of the Local System account. The Automatic Updates service does not have access to the user-specific proxy server settings that may be configured in Internet Explorer. WinHTTP has been employed, instead of WinInet in Internet Explorer, as the Automatic Updates service affects system wide level configuration and should require administrator level control. WinHTTP is considered as more appropriate in this type of usage scenario. The Automatic Updates service can only discover a proxy server by using one of the following methods:
Internet Explorer is used to access the Windows Update Web siteIf you use Internet Explorer to access the Windows Update Web site, the Windows Update client program discovers a proxy server by using the following methods in the order that they appear in.Method 1: Internet Explorer is configured to automatically detect settingsIf the Automatically detect settings check box is selected in Internet Explorer, the Windows Update client uses the WPAD feature to locate a proxy server. To view the Automatically detect settings check box, follow these steps:
816320
(http://support.microsoft.com/kb/816320/
)
How to configure firewall and Web proxy client Autodiscovery in Windows Server 2003
Method 2: Internet Explorer is configured to use an automatic configuration scriptIf the following conditions are true, the Windows Update client locates the proxy server by processing the automatic configuration script:
Method 3: Internet Explorer is configured by using a user-defined proxy server valueIf the following conditions are true, the Windows Update client uses the user-defined proxy server to connect to the Internet:
Method 4: A proxy server is not specified in Internet ExplorerIf no proxy server is defined in Internet Explorer, the Windows Update client uses the proxy server that was configured by using the Proxycfg.exe tool. For more information about how to use the Proxycfg.exe tool, click the following article number to view the article in the Microsoft Knowledge Base:289481
(http://support.microsoft.com/kb/289481/
)
You may need to run the Proxycfg tool for ServerXMLHTTP to work
Method 5: No proxy server is configuredIf the following conditions are true, the Windows Update client tries to connect to the Windows Update Web site directly:
A description of the Web Proxy Auto Detect (WPAD) featureThe WPAD feature lets services locate an available proxy server by querying a DHCP option or by locating a particular DNS record. For more information about the advantages and disadvantages of using DNS instead of DHCP for WPAD, click the following article number to view the article in the Microsoft Knowledge Base:816320
(http://support.microsoft.com/kb/816320/
)
How to configure firewall and Web proxy client Autodiscovery in Windows Server 2003
A description of the Proxycfg.exe toolThe Proxycfg.exe tool configures WinHTTP to use a specific proxy server by modifying the following registry entry:HKEY_LOCAL_MACHINE\ SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\WinHttpSettings The Proxycfg.exe tool is useful if you cannot implement WPAD. Additionally, you can use this tool to help you troubleshoot proxy server discovery problems in the network. In this situation, you can use this tool to help verify that an issue occurs because of a failure to discover a proxy server by using the other discovery methods, such as WPAD.
For more information about a related topic, click the following article number to view the article in the Microsoft Knowledge Base:
289481
(http://support.microsoft.com/kb/289481/
)
You may need to run the Proxycfg tool for ServerXMLHTTP to work
To view the command-line parameters that the Proxycfg.exe tool supports, type proxycfg.exe /? at a command prompt, and then press ENTER. If you run the proxycfg.exe command by using no command-line parameters, the current settings are displayed. In this situation, you receive results that are similar to one of the following results.Settings where no proxy server is configuredMicrosoft (R) WinHTTP Default Proxy Configuration Tool
Copyright (c) Microsoft Corporation. All rights reserved.
Current WinHTTP proxy settings under:
HKEY_LOCAL_MACHINE\
SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\
WinHttpSettings :
Direct access (no proxy server).Settings where a proxy server is configuredMicrosoft (R) WinHTTP Default Proxy Configuration Tool
Copyright (c) Microsoft Corporation. All rights reserved.
Current WinHTTP proxy settings under:
HKEY_LOCAL_MACHINE\
SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\
WinHttpSettings :
Proxy Server = <myproxyserver>
Bypass List = To configure a proxy server by using the Proxycfg.exe toolTo use the Proxycfg.exe tool to configure a proxy server, follow these steps:
Microsoft (R) WinHTTP Default Proxy Configuration Tool
Copyright (c) Microsoft Corporation. All rights reserved.
Current WinHTTP proxy settings under:
HKEY_LOCAL_MACHINE\
SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\
WinHttpSettings :
Proxy Server = <myproxyserver>
Bypass List = To remove a proxy server by using the Proxycfg.exe toolTo use the Proxycfg.exe tool to remove a proxy server and to configure "direct access" to the Internet, follow these steps:
To configure a proxy server by using the Netsh.exe toolFor Windows Vista and above, Netsh.exe tool is available in place of proxycfg.exe.To use the Netsh.exe tool to configure a proxy server, follow these steps:
To remove a proxy server by using the Netsh.exe toolTo use the Netsh.exe tool to remove a proxy server and to configure "direct access" to the Internet, follow these steps:
To verify the current proxy configuration by using the Netsh.exe toolTo use the Netsh.exe tool to verify the current proxy configuration, follow these steps:
Supported .pac filesFor more information about the supported types of .pac files, visit the following Microsoft Web site:http://msdn2.microsoft.com/en-us/library/aa384240.aspx
(http://msdn2.microsoft.com/en-us/library/aa384240.aspx)
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
