- Настройка параметров прокси-сервера клиента с помощью файла реестра
- Общая информация
- Создание файла реестра
- Дополнительные сведения
- Unable to Change IE/Windows Proxy Settings
- How to Change Windows Proxy Server Settings
- Related
- Registry File
- Internet Explorer
- In Windows 7, how to change proxy settings from command line?
- 6 Answers 6
Настройка параметров прокси-сервера клиента с помощью файла реестра
В этой статье описывается создание файла реестра Windows для настройки параметров прокси-сервера на клиентский компьютер, на который работает Microsoft Internet Explorer или Windows Internet Explorer.
Оригинальная версия продукта: Windows 7 Пакет обновления 1
Исходный номер КБ: 819961
Общая информация
Вы можете автоматически настроить параметры прокси-сервера на клиентский компьютер, обновив реестр клиентского компьютера. Для этого создайте файл реестра, содержащий параметры реестра, которые необходимо обновить. Затем раздать его на клиентский компьютер с помощью пакетного файла или сценария логотипа.
В этот раздел, описание метода или задачи включены действия, содержащие указания по изменению параметров реестра. Однако неправильное изменение параметров реестра может привести к возникновению серьезных проблем. Поэтому следует в точности выполнять приведенные инструкции. Для дополнительной защиты создайте резервную копию реестра, прежде чем редактировать его. Так вы сможете восстановить реестр, если возникнет проблема. Дополнительные сведения о том, как создать и восстановить реестр, см. в этой информации, как создать и восстановить реестр в Windows.
Создание файла реестра
Чтобы настроить параметры прокси-сервера на клиентский компьютер, создайте следующий файл .reg для заполнения реестра сведениями прокси-сервера:
файле — имя прокси-сервера.
Дополнительные сведения
Вы также можете использовать набор администрирования Internet Explorer (IEAK) для настройки параметров прокси-сервера на клиентских компьютерах.
Unable to Change IE/Windows Proxy Settings
Welcome to Microsoft Community and thanks for posting the question.
Based on the description provided, it looks like you are facing an issue while changing Internet Explorer Proxy settings.
This issue occurs due to Internet Explorer settings or permission.
I would suggest you to try the following Microsoft article and check.
Check the permissions on Internet Settings in registry
a) Click on start button > type in regedit in the search box and hit enter.
b) Navigate to the location below.
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings
c) Right Click on Internet Settings and select Permissions.
d) Ensure that your user profile has full control.
Note: Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: http://windows.microsoft.com/en-US/windows7/Back-up-the-registry
I would suggest you to Reset Internet Explorer settings and check if it helps.
Note: The Reset Internet Explorer Settings feature might reset security settings or privacy settings that you added to the list of Trusted Sites. The Reset Internet Explorer Settings feature might also reset parental control settings. We recommend that you note these sites before you use the Reset Internet Explorer Settings feature.
Refer to the following Microsoft article.
If you need any other information about Windows, feel free to post your questions and we will be glad to help.
How to Change Windows Proxy Server Settings
Related
A proxy server allows you to regulate and monitor Internet traffic from employees on your company’s network. It logs Internet access, tracks website visits and allows you to block particular websites. You can change the Windows proxy server settings on each computer in your office to route your network traffic through the proxy server. This requires creating a registry file and running the file on each computer to change the settings for all computer users. Alternately, you can visit each computer and change users’ settings via the Internet Explorer options.
Registry File
Create a Windows registry file with your company’s proxy server settings. Click the «Start» button, choose «All Programs,» then click «Accessories» and «Notepad» to launch the Notepad text editor.
Type the following into the Notepad window, substituting the name or IP address of your proxy server for the «%proxyserver%» tag in the text:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] «MigrateProxy»=dword:00000001 «ProxyEnable»=dword:00000001 «ProxyHttp1.1″=dword:00000000 «ProxyServer»=»http://%proxyserver%:80» «ProxyOverride»=» «
Insert a USB flash drive into the computer. View the contents of your desktop to identify the drive letter that Windows assigns to the flash drive.
Click «File» and «Save as. » in Notepad. Click the «Save as Type:» box and choose «All Files.» Enter the drive letter of the USB flash drive followed by a colon and a backslash; then type a name for the registry settings file and append «.reg» to the filename in the «File name:» box. For example, type «L:\proxy.reg.» Click «Save» to save the registry file.
Visit each computer on the network. Log on to the computer using an administrator account. Insert the flash drive into the USB port and watch the desktop to identify the icon corresponding to the flash drive. Double-click the icon, then double-click the registry file and choose «Yes» to update the registry settings on the computer.
Internet Explorer
Click «Start» to open the Windows Start menu and choose «Internet Explorer.»
Click «Tools» and «Internet Options.» Click the «Connections» tab and choose «LAN settings.» Click the check box for «Use a proxy server for your LAN.»
Enter the IP address of the proxy server in the «Address» box. Enter the port number in the «Port» box.
Click the «Advanced» button and customize the addresses if you require different proxy server addresses for different protocols such as HTTPS or FTP.
Click «OK» to save the configuration. Browse to a website to ensure that you have Internet access through the proxy server.
In Windows 7, how to change proxy settings from command line?
How do I change proxy settings from command line in Windows 7?
I’m not talking about just the http_proxy . I need to set system-wide proxy settings (the ones in Internet properties setting). How do I do that?
6 Answers 6
You’ll need to configure a registry script that will make the changes you normally would via the Control Panel, and then merge the script to enable the proxy. You would also need an «undo» registry script to disable the changes.
In my case, I have two scripts, enable.reg and disable.reg:
In the «disable» script, the =- at the end of AutoConfigURL actually deletes the key from the registry.
Note that the values you see above are modified for the purposes of this answer. The actual hex values are much longer.
To use these scripts, I had a batch file for each one, looking something like this:
That is fully workable from the command line.
Command to enable proxy usage:
Command to disable proxy usage:
Command to change the proxy address:
I have added line continuation (^) for improved readability. Also, in this case, it is more like a per-user setting than a system-wide setting.
NetSh winhttp set proxy should be helpful. Here are the commands:
netsh winhttp set proxy myproxy
netsh winhttp set proxy myproxy:80 » bar»
netsh winhttp set proxy proxy-server=»http=myproxy;https=sproxy:88″ bypass-list=»*.contoso.com»
I did it in C#, but the philosphy is the same, writing to the registry, so the following instructions can be extrapolated to line command. It shall be done three things:
Write to Registry «HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings», on ProxyEnable: 1 to enable, 0 to disable
Write to Registry «HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings», on ProxyServer: xxx.xxx.xxx.xxxx:yyyy (xxx. is the IP, yy.. is the port)
After performing steps 1 and 2 you will have written to registry the activation of proxy and the IP and port, but if you open the browser you will notice that it is not enough, you can’t navigate yet. The third step consists of changing the registry regarding connections settings:
«Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections» on «DefaultConnectionSettings».
Notice that although (at least for W7) there are 204 bytes in this registry, you only have to modify byte 8 (9th since byte 0 is the first). Byte 8 value not only contains information about proxy enable/disable, but also about other functionalities:
In my case, the ‘Automatically detect settings’ is always enabled, so I switch the value of byte 8 from 09 to 0B and viceversa to enable and disable the proxy.