PS
Wed Apr 28 19:35:32 CDT 2004
"microsfot" <beckjf@ci.denver.co.us> wrote in message
news:uhiQ5LVLEHA.2400@tk2msftngp13.phx.gbl...
> Hello;
>
> We have just put up a proxy server and all HTTP traffic must go through
it.
> We need to modify a VB Script, that access a web page directly, to use the
> proxy settings. Can anyone tell me how do to this?
>
> Thanks
>
> john beck
>
>
John-
This works for us
Good luck!
PS
Set objShell = CreateObject("Wscript.Shell")
' Set the Internet Explorer proxy information
strRegKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\AutoConfigURL"
strRegVal = "
http://proxysrv.com/proxy"
objShell.RegWrite strRegKey, strRegVal, "REG_SZ"
Wscript.Echo "Internet Explorer Auto Config URL set to " & strRegVal & "."