
//****************************************
//
// Setting del proxy per Internet Explorer
//
//****************************************

var vbOKCancel = 1;
var vbInformation = 64;
var vbCancel = 2


// ********************************************************************************
// *
// * Registry related methods.
// *

var WSHShell = WScript.CreateObject("WScript.Shell");

WSHShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyServer", "px.bess-piemonte.it:3128");
WSHShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyOverride", "<local>");
WSHShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyEnable", 1, "REG_DWORD");
WSHShell.Popup("Il proxy è stato impostato per Internet Explorer.", 0, "", vbInformation );

