batch:设置IE使用Http代理

通过批处理来设置IE使用Http代理连接!

@echo off
title 设置IE使用Http代理
rem 是否启用代理连接:1是0否
set pe=1
rem http代理的IP与端口:"ip:port"
set ps="192.168.2.200:808"
rem 不使用代理连接的列表:"a;b;c"
set po="127.*;192.*;*.domain.lan;*.local"
rem 是否隐藏IE选项中连接页:1是0否
set ct=0
rem 所有协议使用相同代理服务器:1是0否
set mp=1
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d %pe% /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d %ps% /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /t REG_SZ /d %po% /f
reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Control Panel" /v ConnectionsTab /t REG_DWORD /d %ct% /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v MigrateProxy /t REG_DWORD /d %mp% /f
taskkill /im iexplore.exe /f
exit

Tty725 说:
欢迎转载,但请注明内容的来源或URL;
[转]”篇章,必须保留原始来源且勿添加本blog指向。
原文地址:https://www.cnblogs.com/Tty725/p/1984860.html