You can automatically modify the Local System agent (IE proxy) server address.
This can be a dynamic IP that specifies the computer name, a static IP, or a port number, which is very useful.
After downloading, edit, modify the computer name and port number you want to set the proxy server, or specify IP directly
After the modification, the script resolves the IP address of the host name and then sets up the System Agent.
After entering the Internet settings in IE, you can see that the settings have been set successfully.
Automatically set up a native proxy server-batch code:
@echo iftitle automatically changes IE proxy IP by: Small Sea2010.9.15::color 80&mode con cols=60 lines=20::please change from set HOST=XXX to the host name to pingSethost=bj-clt-003::Please modify the destination server port number yourselfSetport=8888 for/F "tokens=2 delims=[]"%%i in (' Ping%host%/n 1-4 ^| findstr ' ping ') Do EchoHost name:%host% IP Address:%%i:%port%&Setip=%%iSetIp>nul 2>nulif%ERRORLEVEL%==1EchoHost%host% not found, please check the host name is correct!&Goto End::If you need to specify an IP address directly, you can delete the for command line and the IF command line and modify the set ip=x.x.x.x directly.EchoWriting registration Value ...Echo==============================REG ADD"HKCU\Software\Microsoft\Windows\CurrentVersion\Internet settings\connections"/V "DefaultConnectionSettings"/t REG_BINARY/D "3c000000aa0100000b0000000f000000"/F 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"/t reg_sz/d "%ip%:%port%"/F REG ADD"Hklm\system\currentcontrolset\hardware profiles\0001\software\microsoft\windows\currentversion\internet Settings "/V" proxyenable "/t reg_dword/d" 1 "/F REG ADD"HKCU\Software\Microsoft\Windows\CurrentVersion\Internet settings\connections"/V "SavedLegacySettings"/t REG_ BINARY/D "3c000000ae0100000b0000000f000000"/F REG ADD"HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"/V "proxyoverride"/t reg_sz/d "<local>"/FEcho.Echo==============================Echodone! After restarting IE takes effect: EndPing127.1/n 3 >nul&Exit::should be a 0 production, IE6 IE8 have passed the test
View Code
Remove the native Proxy server settings-batch code:
@echo offTitle Remove the native proxy server settingsEchoWriting registration Value ...Echo==============================REG ADD"HKCU\Software\Microsoft\Windows\CurrentVersion\Internet settings\connections"/V "DefaultConnectionSettings"/t REG_BINARY/D "3c000000aa0100000b0000000f000000"/F REG ADD"HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"/V "proxyenable"/t reg_dword/d "0"/F REG ADD"HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"/V "proxyserver"/t reg_sz/d ""/F REG ADD"Hklm\system\currentcontrolset\hardware profiles\0001\software\microsoft\windows\currentversion\internet Settings "/V" proxyenable "/t reg_dword/d" 1 "/F REG ADD"HKCU\Software\Microsoft\Windows\CurrentVersion\Internet settings\connections"/V "SavedLegacySettings"/t REG_ BINARY/D "3c000000ae0100000b0000000f000000"/F REG ADD"HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"/V "proxyoverride"/t reg_sz/d "<local>"/FEcho.Echo==============================Echodone! After restarting IE takes effect: EndExit::should be a 0 production, IE6 IE8 have passed the test
View Code
[Batch] automatically set up the native system proxy Server