如何为本地系统帐户配置IE代理? [英] How to configure IE proxying for the local system account?

查看:124
本文介绍了如何为本地系统帐户配置IE代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请参阅服务器故障:如何配置本地系统的代理设置?

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

我有一个Windows服务,需要使用某些代理设置(例如主机名和端口)启动IE.如果将服务配置为以某些普通用户(例如,我)身份运行,则可以通过在"HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet设置"注册表项中以编程方式设置以下值来确保所需的IE代理配置:

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 = (删除)

但是,如果将服务配置为使用本地系统帐户登录,则设置这些注册表值似乎对IE无效.

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.

是否有编程方式为本地系统帐户配置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.

如果您想知道为什么服务需要启动浏览器,则作为服务运行的程序是 Sahi ).

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.

推荐答案

这是

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.

这篇关于如何为本地系统帐户配置IE代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆