Re: Proxy settings

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Grant (gpsnett_at_hotmail.com)
Date: 06/01/04


Date: Tue, 1 Jun 2004 20:40:44 +1000

Hey Mike, do you know how to enable the 'proxy bypass' setting in the
registry? The 'Win32_Proxy Class' doesnt have that function and I had a
look in my registry at the
'HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\ProxyByPass' key but it doesnt change wehen I change me internet
explorer settings - so I think Im looking in the wrong place.

Do you know how to set this from script?

Thanks,
Grant

"Mike SMITH" <mike@nospamtesla76.freeserve.co.uk> wrote in message
news:c9fhl7$6mk$1@newsfeed.th.ifl.net...
> Hi Grant
>
> Here is a couple of functions I used to change the registry, see if
> what
> you need is in there ;-)
>
> <snip>
>
> Function DisableProxy()
>
> Set WshShell = WScript.CreateObject("WScript.Shell")
> MyValue =
> WshShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\proxyenable")
>
> If MyValue = 1 Then
>
> WshShell.RegWrite
> "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\proxyenable", 0 ,"REG_DWORD"
> WshShell.RegWrite "HKLM\Software\Microsoft\Firewall Client\Disable", 1
> ,"REG_DWORD"
> WshShell.RegWrite
> "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\EnableAutoDial", 1 ,"REG_DWORD"
> Wshshell.Regwrite
> "HKEY_CURRENT_CONFIG\Software\Microsoft\windows\CurrentVersion\Internet
> Settings\EnableAutodial", 1 ,"REG_BINARY"
>
> End If
>
>
> Wscript.echo "Proxy Disabled"
>
> End Function
>
>
> Function EnableProxy()
>
> Set WshShell = WScript.CreateObject("WScript.Shell")
> MyValue =
> WshShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\proxyenable")
>
> If MyValue = 0 Then
>
> WshShell.RegWrite
> "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ProxyEnable", 1 ,"REG_DWORD"
> WshShell.RegWrite
> "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ProxyServer","myproxy server:<port no>"
> WshShell.RegWrite "HKLM\Software\Microsoft\Firewall Client\Disable", 0
> ,"REG_DWORD"
> WshShell.RegWrite
> "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\EnableAutoDial", 0 ,"REG_DWORD"
> Wshshell.Regwrite
> "HKEY_CURRENT_CONFIG\Software\Microsoft\windows\CurrentVersion\Internet
> Settings\EnableAutodial", 0 ,"REG_BINARY"
>
> End If
>
> Wscript.echo "Proxy Enabled"
>
> End Function
>
> </snip>
>
> It's from a script I wrote for my laptop when I was at work or from home.
> MyValue comes from the result of pinging the proxy.
>
> HTH
>
> Mike
>
> "Grant" <gpsnett@hotmail.com> wrote in message
> news:O$GVhYsREHA.3504@TK2MSFTNGP09.phx.gbl...
>> Hello,
>>
>> Is there a way to set the proxy server of a machine at login? I found the
>> 'SetProxySetting' in the 'Win32_Proxy Class' on the MSDN site but I dont
>> know how to implement it.
>>
>>
>> Thanks,
>> Grant
>>
>>
>
>



Relevant Pages

  • Re: Registry key missing?
    ... - right click inside parameters add Dword copy and paste EnableProxy ... proxy name server for the networks that NBT is bound to. ... > that should solve this issue by editing a registry key, ...
    (microsoft.public.windowsxp.network_web)
  • Re: creating Out-of-proc server in wince 6.0
    ... you deploy that DLL to the device? ... Also, don't choose a generic name, like proxy.dll for your proxy. ... We build a subproject in Server project in Visual Studio 2005. ... For the registry entries, we make the changes manually by editing the ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Switching Proxy Servers
    ... The: way it needs to work is it has to hit a test webpage using the: WebBrowser control. ... If the proxy: server works, the IP dumped into the database will reflect that. ... Setting the IP in the registry from code works perfectly. ... I: then manually brought up instances of IE, and the new proxy server: setting was reflected in the property pages. ...
    (microsoft.public.vb.controls.internet)
  • Re: Registry key missing?
    ... > admin page refuses to load and I contacted USR but they were ultimately ... > that should solve this issue by editing a registry key, ... > NameSrvQueryCount ... > and as you can see there is no EnableProxy key there. ...
    (microsoft.public.windowsxp.network_web)
  • Registry key missing?
    ... admin page refuses to load and I contacted USR but they were ultimately ... that should solve this issue by editing a registry key, namely EnableProxy. ... NameSrvQueryCount ...
    (microsoft.public.windowsxp.network_web)