Windows update use proxy

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

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

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

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

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

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

netsh winhttp import proxy source=ie

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

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

netsh winhttp set proxy proxy-server="your-proxy-srv:3128" bypass-list="*.windowsupdate.com;*.microsoft.com"

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

netsh winhttp show proxy

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

Netsh winhttp reset proxy

Кстати netsh отличная утилита командной строки для работы с сетевыми службами и настройками, и каждый профессиональный Windows админ должен уметь ею пользоваться. Я уже не раз упоминал о ней, в статье о графической диагностике сети при помощи netsh, или про управление сервером DHCP Windows Server из командной строки PowerShell.

It is not a secret for anyone that in the event that your PC running Microsoft OS is connected to the Internet using a proxy server, the Windows Update service doesn’t work by default. This note is about how you can configure the Windows Update system on a PC behind a proxy server.

The Windows Update service can use an HTTP proxy server. However, specifying the proxy server in the Windows Internet Explorer settings is not enough for the update service to work through the proxy. The fact is that Windows Update uses Windows HTTP Services (WinHTTP) to look for updates, and BITS is used to download updates. The Windows Update service is configured by default so that it always tries to access the Microsoft update server directly, without using a proxy server, even if it is specified in Internet Explorer settings.

The configuration is performed using the following command:

netsh winhttp set proxy

After you run this command, your Windows 7 OS will be updated, even when you are behind a proxy server.

Alternatively, if you want to take proxy settings from Internet Explorer, you can use the command:

netsh winhttp import proxy source = ie

As an option, it is also possible that you need to redirect all traffic except for Microsoft traffic (system updates, activation) to a proxy server, then you can use the following proxy bypass command for Windows updates.

Do a proxy bypass for activation and updates like this:

netsh winhttp set proxy proxy-server = “your-proxy-srv: 3128” bypass-list = “*. windowsupdate.com; *. microsoft.com”

The current WinHttp settings can be viewed with the command:

netsh winhttp show proxy
You can reset the proxy server settings using the command:

Netsh winhttp reset proxy 

Related post : Windows 7 RSAT for Windows Server

Работа любого ПО через прокси сервера может происходить по следующим сценариям:
 1. В настройках программы разработчик позволяет указать адрес и порт прокси.
 2. Используются параметры функции автоматического поиска прокси-сервера (Web Proxy Auto Detect, WPAD), настраиваемые администраторами служб DNS, DHCP.
 3. Настройки прокси могут быть взяты программой из контекста пользователя, под которым она была запущена.
Так, если ПО запускается под обычной учетной записью, то информация берется из пользовательского профиля, а именно из настроек

Internet Explorer

. Например, чтобы активировать Windows через прокси, нужно установить настройки в IE, активатор сам их использует при отсутствии прямого подключения (при этом прокси сервер должен уметь прокидывать и HTTPS-трафик, информация о ключах конфиденциальна).
В случае работы сервиса, который обычно запускается под служебными пользователями и не имеет доступа к настройкам прокси-сервера определенного пользователя в IE, придется вручную изменить настройки Winhttp. Делается это в старых системах с помощью утилиты «Proxycfg.exe«. В новых версиях, начиная с Windows Vista/2008, функционал был перенесен на утилиту командной строки — netsh. Синтаксис следующий:

netsh winhttp set proxy 192.168.1.1:8080

— устанавливаем прокси сервер 192.168.1.1 и порт 8080, исключая все локальные адреса;

netsh winhttp set proxy 192.168.1.1:8080 bypass-list=»*.windowsupdate.com;*.microsoft.com»

— устанавливаем прокси сервер 192.168.1.1 и порт 8080, исключая домены windowsupdate.com и microsoft.com со всеми поддоменами;

netsh winhttp import proxy source=ie

— получить настройки из IE пользователя, выполняющего команду;

netsh winhttp reset proxy

— сбрасываем текущие настройки на прямой доступ;

netsh winhttp show proxy

— показать текущие настройки.

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

  1. Главная
  2. Вопрос-ответ

Иногда случается так, что компьютер, который работает в локальной сети компании через прокси-сервер не может получить доступ к обновлениям Microsoft, будь то Windows Update или например обновления для антивируса Security Essentials.

Ранее, в Windows XP для решения этой проблемы использовалась команда proxycfg. Мы не будем вдаваться в подробности всех ключей данной команды, которые можно увидеть набрав в командной строке Windows XP:

proxycfg /?

В нашем случае, достаточно импортировать настройки прокси-сервера из Internet Explorer (при условии, что он настроен) командой:

proxycfg -u

В Windows 7 и Windows 2008 утилита proxycfg удалена, но весь её функционал перенесён в утилиту netsh. И в нашем случае, для импорта настроек прокси-сервера из Internet Explorer нам понадобится команда:

NetSH WinHTTP import Proxy ie

P.S. Все команды должны выполняться в командной строке с правами администратора.


A lot of organizations use proxy servers to restrict access to the internet. This can be done for a variety of reasons, such as security or bandwidth management. If your organization uses a proxy server for Windows Update, you may need to configure your computer to use that proxy server. In this blog post, we will show you how to do that!

If you are using a proxy server, the first thing you need to do is check with your network administrator to see if you need to use a specific proxy server for Windows Update. If so, you will need to get the address and port number of that proxy server. Once you have that information, you can follow the steps below to configure your computer to use the proxy server for Windows Update Proxy.

To configure your computer to use a proxy server:

  • Open the Control Panel.
  • Click on “Network and Internet”.
  • Click on “Internet Options”.
  • In the “Internet Properties” window, click on the “Connections” tab.
  • Click on “LAN Settings”.
  • In the “Local Area Network (LAN) Settings” window, check the “Use a proxy server for your LAN” box.
  • In the “Address” field, enter the address of the proxy server.
  • In the “Port” field, enter the port number of the proxy server.
  • Click on “OK”.
  • Close the “Internet Properties” window.

If you are still having trouble or are getting error messages, there are a few things you can try:

  • Check your proxy server settings. Make sure the address and port number are correct.
  • If you are using a specific username and password to connect to the proxy server, make sure that those credentials are entered correctly in the “Internet Properties” window.
  • Try temporarily disabling any firewall or antivirus software on your computer. This can sometimes interfere with Windows Update.
  • If you are still having trouble, contact your network administrator for help. They will be able to tell you if there is anything else going on that might be causing the issue.

That’s it! You should now be able to connect to and download updates from Microsoft’s servers. If you have any questions about this process or run into any issues, feel free to leave a comment below and we will try our best to help you out!

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

Open a command prompt with administrator privileges. To do this, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.- Type the following command at a command prompt, and then press Enter: netsh winhttproxy show proxyThis command displays the currently configured proxy server.

If no proxy server is configured, the output from this command is Direct access (no proxy server). – To configure a proxy server by using the Netsh.exe tool, type the following command at a command prompt, and then press Enter:netsh winhttproxy set proxy proxy-server=”server name or IP address” port=port numberIf you use an asterisk (*) as a wildcard character in the server name, the proxy server resolves all unqualified DNS names.

However, this configuration may cause issues with some websites. For example, if you set the proxy server to *.contoso.com and then try to access the websites mail.contoso.com and intranet.contoso.com, you cannot access the website intranet.contoso.com because the proxy server resolves all unqualified DNS names to contoso.com.- To remove the proxy server configuration, type the following command at a command prompt, and then press Enter:netsh winhttproxy resetThis command removes the proxy server configuration.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Windows xp сборка lex pex
  • Чем просматривать pdf в windows 10
  • Umfd 0 что это за процесс windows 10
  • Как восстановить резервное копирование windows
  • Как создать диск d на windows 10 pro