A very big Your Mileage May Vary warning:;
ProxyOff.js
---------------------snip-----------------------------------
// JScript.
Sh = new ActiveXObject("WScript.Shell");
key = "HKEY_CURRENT_USER\\"
Sh.RegWrite( key +
"Software\\Microsoft\\Windows\\CurrentVersion\\Internet
Settings\\ProxyEnable", "0" , "REG_DWORD");
//Sh.RegWrite( key +
"Software\\Microsoft\\Windows\\CurrentVersion\\Internet
Settings\\ProxyServer","", "REG_SZ");
WScript.Echo( Sh.RegRead(key +
Software\\Microsoft\\Windows\\CurrentVersion\\Internet
Settings\\ProxyEnable"));
//WScript.Echo ( Sh.RegRead(key +
"Software\\Microsoft\\Windows\\CurrentVersion\\Internet
Settings\\ProxyServer"));
key = "HKEY_CURRENT_CONFIG\\"
Sh.RegWrite( key +
"Software\\Microsoft\\windows\\CurrentVersion\\Internet
Settings\\ProxyEnable", "0", "REG_DWORD");
WScript.Echo( Sh.RegRead(key +
"Software\\Microsoft\\windows\\CurrentVersion\\Internet
Settings\\ProxyEnable"));
----------------------------------------------snip-------------------------------------------------
ProxyOn.js
---------------------------------------------snip----------------------------------------------------
// JScript.
Sh = new ActiveXObject("WScript.Shell");
key = "HKEY_CURRENT_USER\\"
Sh.RegWrite( key +
"Software\\Microsoft\\Windows\\CurrentVersion\\Internet
Settings\\ProxyEnable", "1" , "REG_DWORD");
//Sh.RegWrite( key +
"Software\\Microsoft\\Windows\\CurrentVersion\\Internet
Settings\\ProxyServer","12.229.56.110:2050",
"REG_SZ");
WScript.Echo( Sh.RegRead(key +
"Software\\Microsoft\\Windows\\CurrentVersion\\Internet
Settings\\ProxyEnable"));
//WScript.Echo ( Sh.RegRead(key +
"Software\\Microsoft\\Windows\\CurrentVersion\\Internet
Settings\\ProxyServer"));
key = "HKEY_CURRENT_CONFIG\\"
Sh.RegWrite( key +
"Software\\Microsoft\\windows\\CurrentVersion\\Internet
Settings\\ProxyEnable", "1", "REG_DWORD");
WScript.Echo( Sh.RegRead(key +
"Software\\Microsoft\\windows\\CurrentVersion\\Internet
Settings\\ProxyEnable"));
-----------------------------------------------------snip---------------------------------------------
work.bat
------------------------------------------------------snip-------------------------------------------
@echo off
ipconfig /release
ipconfig /renew
cscript ProxyOn.js
-----------------------------------------------------snip------------------------------------------
Make those files and put them on your desktop in a
folder or whatever.
They need to be in the same folder.
This has been tested on MS campus with XP Pro,
ymmv
