出于安全考虑,相信不少企业都是通过IE代理来上网的,并且利用组策略禁用了IE的一些选项和功能,譬如:当打开“InternetOptions”时,我们只能看到“General”而看不到其它的选项卡,包括IE安全等级都有做策略限定。这样一来,出于工作性质不同,不同人的IE代理可能不一样,尤其在权限这块,因此,权限高的可能都不愿意别人看到自己的IE代理,因此,我们可以透过命令去设定IE代理,加之,本身“Connections”选项卡已经被屏蔽掉了,所以,自然不会泄露自己的IE代理。以下为设定IE代理命令,敬请参考:

@echo off
echo 设置IE代理请按 Y,清除代理请按 N,取消操作请按 C。
@echo off
set /p a=请选择:
if "%a%"=="c" goto end
if "%a%"=="n" goto clearproxy
if "%a%"=="y" goto setproxy
:setproxy
echo 开始设置IE代理上网
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "192.168.1.254:8.80" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /t REG_SZ /d "192.*;*.sxleilong.com;*.leilong.com;<local>" /f
echo 代理设置完成
goto end
:clearproxy
echo 开始清除IE代理设置
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
echo IE代理清除完成
:end
echo Run Complete...
pause