IE通过注册表启用/禁用代理设置 [英] IE Enable/Disable Proxy Settings via Registry

查看:740
本文介绍了IE通过注册表启用/禁用代理设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在IE运行时启用/禁用IE代理设置。我有一个PowerShell脚本行来启用代理:

I need to enable/disable IE proxy settings while IE is running. I have a PowerShell script line to enable the proxy:

Set-ItemProperty -Path "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" ProxyEnable -value 1



或者这个要禁用:


or this to disable:

Set-ItemProperty -Path "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" ProxyEnable -value 0



以上脚本工作,注册表项得到更新。但是,在关闭所有打开的IE窗口并打开一个新窗口之前,IE不会获取该值。我需要已经打开/运行IE窗口来获取新设置。


Above scripts work, registry key gets updated. However, IE doesn't pick up the value until I close all the open IE windows and open a new one. I need already opened/running IE windows to pick up the new setting.

有没有办法达到我想要的效果?

Would there be any way to achieve what I want?

推荐答案

修改

[HKEY_USERS\<your SID>\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

不需要重启ie

这篇关于IE通过注册表启用/禁用代理设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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