How to configure IE proxying for the local system account? [closed]

别等时光非礼了梦想. 提交于 2020-01-02 10:04:22

问题


See Server Fault: How do I configure proxy settings for LOCAL SYSTEM?

I have a Windows service that needs to start up IE with certain proxy settings (e.g. host name and port). If the service is configured to run as some normal user (e.g. me), I can ensure the required IE proxy configuration by programmatically setting the following values in the "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" registry key:

  • ProxyServer = myserver:9999
  • ProxyEnable = 0x1
  • ProxyOverride = (delete)

However if the service is configured to log on using the local system account, setting those registry values seems to have no effect on IE.

Is there a programmatic way to configure IE proxying for the local system account? Ideally I'd like a method that works both for that account and for normal users, to keep my program simple.

In case you're wondering why a service needs to start a browser, the program being run as a service is the Hudson continuous integration server, which in turn is configured to run some browser-based automated acceptance tests of a web application (using Sahi).

STOP PRESS: Since adding the bounty, I've discovered this is an exact duplicate of https://serverfault.com/questions/34940/how-do-i-configure-proxy-settings-for-local-system, which has an accepted answer, so a bounty is no longer applicable. Can I (or an admin) delete the bounty and get my rep back? Also, it doesn't seem possible to close a StackOverflow question as being a duplicate of a ServerFault question.


回答1:


This is an exact duplicate of https://serverfault.com/questions/34940/how-do-i-configure-proxy-settings-for-local-system, which has an accepted answer.



来源:https://stackoverflow.com/questions/4250887/how-to-configure-ie-proxying-for-the-local-system-account

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!