批处理自动设置IE代理

@echo off

rem 禁用自动检测设置

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" /v DefaultConnectionSettings /t REG_BINARY /d 4600000000 /f

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" /v SavedLegacySettings /t REG_BINARY /d 4600000000 /f

rem 自动设置代理服务器

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f

rem 启用代理

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "proxynj.zte.com.cn:80" /f

rem 设置代理proxynj.zte.com.cn:80

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /t REG_SZ /d "10...;.zte.com.cn;192.168..;*zte.intra;<local>" /f

rem 设置不使用代理的地址"10...;.zte.com.cn;192.168..;*zte.intra;<local>"