Прокси для windows update

Содержание
  1. Обновление Windows XP / 7 / 8 / 2003 / 2008 / 2012 через прокси-сервер
  2. Узнать текущие настройки прокси для WinHTTP
  3. Включить использование прокси-сервера для WinHTTP
  4. Импорт параметров proxy-сервера из браузера Internet Explorer
  5. Если прокси-сервер требует авторизации
  6. Отключить использование прокси сервера в WinHTTP
  7. Как настроить работу Windows Update через прокси-сервер
  8. How the Windows Update client determines which proxy server to use to connect to the Windows Update Web site
  9. INTRODUCTION
  10. More Information
  11. The Automatic Updates service is configured to download and install updates from the Microsoft Windows Update Web site
  12. Internet Explorer is used to access the Windows Update Web site
  13. Method 1: Internet Explorer is configured to automatically detect settings
  14. Method 2: Internet Explorer is configured to use an automatic configuration script
  15. Method 3: Internet Explorer is configured by using a user-defined proxy server value
  16. Method 4: A proxy server is not specified in Internet Explorer
  17. Method 5: No proxy server is configured
  18. A description of the Web Proxy Auto Detect (WPAD) feature
  19. A description of the Proxycfg.exe tool
  20. Settings where no proxy server is configured
  21. Settings where a proxy server is configured
  22. To configure a proxy server by using the Proxycfg.exe tool
  23. To remove a proxy server by using the Proxycfg.exe tool
  24. To configure a proxy server by using the Netsh.exe tool
  25. To remove a proxy server by using the Netsh.exe tool
  26. To verify the current proxy configuration by using the Netsh.exe tool
  27. Supported .pac files

Обновление Windows XP / 7 / 8 / 2003 / 2008 / 2012 через прокси-сервер

Если у Вас используется подключение к интернету через прокси сервер (например, в том случае, если Вы работаете в организации), то Windows не всегда может произвести обновление: время от времени он «ругается» на отсутствие подключения к серверам Microsoft, и выдает другие непонятные ошибки.

Для скачивания обновлений Windows использует службу WinHTTP. Для того, чтобы настроить её для использования прокси сервера, воспользуемся утилитой netsh.

Используйте команды show proxy, set proxy, reset proxy и import proxy в контексте winhttp, для просмотра / настройки / сброса / импорта параметров прокси-сервера. После каждой из команд можно вводить вопросительный знак, чтобы просмотреть её синтаксис:

netsh winhttp show proxy /?
netsh winhttp set proxy /?
netsh winhttp reset proxy /?
netsh winhttp import proxy /?

Узнать текущие настройки прокси для WinHTTP

Чтобы узнать, какие настройки прокси используются WinHTTP в текущий момент, выполните из командной строки (в Windows Vista и выше — от имени администратора):
netsh winhttp show proxy

Включить использование прокси-сервера для WinHTTP

Чтобы включить использование proxy сервера для загрузки обновлений Windows, выполните из командной строки (в Windows Vista и выше — от имени администратора):
netsh winhttp set proxy myproxy.ru:8080

Импорт параметров proxy-сервера из браузера Internet Explorer

Вы также можете сделать импорт параметров прокси-сервера, прописанного в системных настройках Windows (т.е. в браузере Internet Explorer). Для этого выполните следующую команду (в Windows Vista и выше — от имени администратора):
netsh winhttp import proxy source=ie

Если прокси-сервер требует авторизации

В случае, если прокси-сервер требует авторизации, есть 2 способа решения проблемы:

  1. Открыть браузер Internet Explorer, прописать там использование прокси-сервера, и открыть какой-либо сайт (введя логин и пароль для использования прокси. И не закрывая браузер, запустить проверку обновлений (либо после ввода логина и пароля поставить галочку «запомнить пароль»).
  2. Добавить параметры авторизации для прокси-сервера в список сетевых паролей в Windows.

Отключить использование прокси сервера в WinHTTP

Для отключения использования прокси сервера (чтобы обновления Windows скачивались напрямую), выполните из командной строки (в Windows Vista и выше — от имени администратора):
netsh winhttp reset proxy

Как настроить работу Windows Update через прокси-сервер

Ни для кого не секрет, что в том случае, если Ваш ПК с ОС Microsoft выходит в интернет с помощью прокси-сервера, то служба обновления системы Windows Update по-умолчанию не работает. Эта заметка о том, как можно настроить работу системы обновлений Windows на ПК, находящимся за прокси-сервером.

Служба обновлений Windows Update может использовать HTTP прокси-сервер. Однако указания прокси-сервера в настройках Windows Internet Explorer недостаточно для работы службы обновления через проксю. Дело в том, что Windows Update использует Windows HTTP Services (WinHTTP) для поиска обновления, а для загрузки обновлений используется BITS. Служба Windows Update по-умолчанию настроена так, что всегда пытается попасть на сервер обновлений Microsoft напрямую, не используя прокси-сервер, даже если в настройках Internet Explorer он указан.

Читайте также:  После обновления не грузится mac os

Однако данная проблема решаема, достаточно настроить системный WinHttp прокси. В ОС Windows XP/2003 WinHttp прокси задавался с помощью утилиты proxycfg.exe. В новых ОС Windows Vista/7/2008 данная утилита упразднена и настройка WinHttp прокси выполняется при помощи команды netsh.

Настройка выполняется при помощи следующей команды: netsh winhttp set proxy : .

После того, как вы выполните данную команду, ваша ОС Windows 7 будет обновляться, даже находясь за прокси-сервером.

Как вариант, если вы хотите взять настройки прокси из Internet Explorer, можно воспользоваться командой:

Как вариант возможна также ситуация, когда необходимо перенаправить весь трафик, кроме трафика на Microsoft (системные обновления, активация) на прокси-сервер, тогда можно воспользоваться следующей командой обхода прокси для обновлений Windows.

Сделайте обход прокси для активации и обновлений вот так:

Текущие настройки WinHttp можно посмотреть командой:

Сбросить же настройки прокси сервера можно при помощи команды:

How the Windows Update client determines which proxy server to use to connect to the Windows Update Web site

INTRODUCTION

The 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 Information

The Automatic Updates service is configured to download and install updates from the Microsoft Windows Update Web site

The 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:

The proxy server is manually configured by using the Proxycfg.exe tool for Windows XP and Windows Server 2003. For Windows Vista and newer OS, Netsh command is available to manually configure the proxy server. 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 You may need to run the Proxycfg tool for ServerXMLHTTP to work

Web Proxy Auto Detect (WPAD) settings are configured in either of the following locations in the network environment:

The Domain Name System (DNS) options

The Dynamic Host Configuration Protocol (DHCP) options

For more information about a related topic, click the following article number to view the article in the Microsoft Knowledge Base:

816320 How to configure firewall and Web proxy client Autodiscovery in Windows Server 2003

Internet Explorer is used to access the Windows Update Web site

If 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 settings

If 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:

Читайте также:  Значок the bat для windows 10

Start Internet Explorer.

On the Tools menu, click Internet Options.

Click the Connections tab.

If you connect to the Internet by using a proxy server on the local area network, click LAN Settings. If you connect to the Internet by using a proxy server for a dial-up connection or a VPN connection, click that connection, and then click Settings.

For more information about a related topic, click the following article number to view the article in the Microsoft Knowledge Base:

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 script

If the following conditions are true, the Windows Update client locates the proxy server by processing the automatic configuration script:

Internet Explorer cannot discover the proxy server by using Method 1.

The Use automatic configuration script check box is selected in Internet Explorer.

To view the Use automatic configuration script check box, follow these steps:

Start Internet Explorer.

On the Tools menu, click Internet Options.

Click the Connections tab.

If you connect to the Internet by using a proxy server on the local area network, click LAN Settings. If you connect to the Internet by using a proxy server for a dial-up or VPN connection, click that connection, and then click Settings.

Method 3: Internet Explorer is configured by using a user-defined proxy server value

If the following conditions are true, the Windows Update client uses the user-defined proxy server to connect to the Internet:

The Windows Update client cannot locate a proxy server by using automatic detection or by using an automatic configuration script.

A proxy server is defined in Internet Explorer.

To view the user-defined proxy server value, follow these steps:

Start Internet Explorer.

On the Tools menu, click Internet Options.

Click the Connections tab.

If you connect to the Internet by using a proxy server on the local area network, click LAN Settings. If you connect to the Internet by using a proxy server for a dial-up or VPN connection, click that connection, and then click Settings.

Note the value that appears in the Address box under Proxy server.

Method 4: A proxy server is not specified in Internet Explorer

If 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 You may need to run the Proxycfg tool for ServerXMLHTTP to work

Method 5: No proxy server is configured

If the following conditions are true, the Windows Update client tries to connect to the Windows Update Web site directly:

No proxy server is configured by using the Proxycfg.exe tool.

No proxy server is manually defined in Internet Explorer.

In this scenario, if a proxy server is required to connect to the Internet, the Windows Update client cannot successfully connect to the Windows Update Web site.

A description of the Web Proxy Auto Detect (WPAD) feature

The 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 How to configure firewall and Web proxy client Autodiscovery in Windows Server 2003

A description of the Proxycfg.exe tool

The Proxycfg.exe tool configures WinHTTP to use a specific proxy server by modifying the following registry entry:

Читайте также:  Windows 10 сколько поддерживает видеокарта

HKEY_LOCAL_MACHINE\ SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\WinHttpSettingsThe 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 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 configured

Settings where a proxy server is configured

To configure a proxy server by using the Proxycfg.exe tool

To use the Proxycfg.exe tool to configure a proxy server, follow these steps:

Click Start, click Run, type cmd, and then click OK.

At the command prompt, type proxycfg -p proxyservername: portnumber, and then press ENTER. In this command, replace proxyservername with the fully qualified domain name of the proxy server. Replace portnumber with the port number for which you want to configure the proxy server. For example, replace proxyservername with proxy. domain. example. com and replace portnumber with 80.

If the proxy server is successfully configured, the following results appear:

To remove a proxy server by using the Proxycfg.exe tool

To use the Proxycfg.exe tool to remove a proxy server and to configure «direct access» to the Internet, follow these steps:

Click Start, click Run, type cmd, and then click OK.

At the command prompt, type proxycfg -D, and then press ENTER.

Note If one of the following conditions is true, a proxy server does not appear in the results of the proxycfg.exe command:

The proxy server is manually configured in Internet Explorer.

The proxy server is configured by using a configuration script.

The proxycfg.exe command is only used to manually configure the proxy server that WinHTTP uses. If you use WPAD to specify a proxy server, or if you use Internet Explorer to specify a proxy server, the results of the proxycfg.exe command should indicate a value of Direct access (no proxy server).

To configure a proxy server by using the Netsh.exe tool

For 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:

Click Start, click Run, type cmd, and then click OK.

At the command prompt, type netsh winhttp set proxy proxyservername:portnumber, and then press ENTER. In this command, replace proxyservername with the fully qualified domain name of the proxy server. Replace portnumber with the port number for which you want to configure the proxy server. For example, replace proxyservername with proxy.domain.example.com and replace portnumber with 80.

To remove a proxy server by using the Netsh.exe tool

To use the Netsh.exe tool to remove a proxy server and to configure «direct access» to the Internet, follow these steps:

Click Start, click Run, type cmd, and then click OK.

At the command prompt, type netsh winhttp reset proxy, and then press ENTER.

To verify the current proxy configuration by using the Netsh.exe tool

To use the Netsh.exe tool to verify the current proxy configuration, follow these steps:

Click Start, click Run, type cmd, and then click OK.

At the command prompt, type netsh winhttp show proxy, and then press ENTER.

Supported .pac files

For more information about the supported types of .pac files, visit the following Microsoft Web site:

Оцените статью