Hi,

I have a question that I have no idea where to even begin researching. I
want to write a vbscript, 2 of them actually. One script should set up a
hardcoded set of proxies for IE to use and the other should clear all proxy
lists that IE uses.

I'm sure its a rather simple thing to do, but I don't know where WinXP
stores this information. I assume it is an registry setting.

Thanks, Brett

Re: VBScript to set IE proxies by Brett

Brett
Thu Dec 30 17:59:57 CST 2004

I found that:
Set WshShell = CreateObject("WScript.Shell")
WshShell.RegWrite
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\ProxyEnable", 1,"REG_DWORD"

will set it to enable the proxy, but how do you specify I want the HTTP
proxy to be www.proxy.com:8080, FTP to be www.proxy.com:8080, and secure to
be www.proxy.com:8080 as well?

Thanks.

"Brett Baisley" <baisley@hot mail . com> wrote in message
news:Oydf3js7EHA.1260@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I have a question that I have no idea where to even begin researching. I
> want to write a vbscript, 2 of them actually. One script should set up a
> hardcoded set of proxies for IE to use and the other should clear all
> proxy lists that IE uses.
>
> I'm sure its a rather simple thing to do, but I don't know where WinXP
> stores this information. I assume it is an registry setting.
>
> Thanks, Brett
>



Re: VBScript to set IE proxies by Michael

Michael
Thu Dec 30 19:01:42 CST 2004

Brett Baisley wrote:
> I found that:
> Set WshShell = CreateObject("WScript.Shell")
> WshShell.RegWrite
> "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ProxyEnable", 1,"REG_DWORD"
>
> will set it to enable the proxy, but how do you specify I want the
> HTTP proxy to be www.proxy.com:8080, FTP to be www.proxy.com:8080,
> and secure to be www.proxy.com:8080 as well?


Manually configure the proxy settings the way you want them and then look at
the various Proxy*** named values under that same registry key...

--
Michael Harris
Microsoft MVP Scripting



Re: VBScript to set IE proxies by Brett

Brett
Thu Dec 30 19:11:50 CST 2004

I tried that, but nothign showed up.


"Michael Harris (MVP)" <mikhar at mvps dot org> wrote in message
news:u1Km%23Qt7EHA.2196@TK2MSFTNGP14.phx.gbl...
> Brett Baisley wrote:
>> I found that:
>> Set WshShell = CreateObject("WScript.Shell")
>> WshShell.RegWrite
>> "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
>> Settings\ProxyEnable", 1,"REG_DWORD"
>>
>> will set it to enable the proxy, but how do you specify I want the
>> HTTP proxy to be www.proxy.com:8080, FTP to be www.proxy.com:8080,
>> and secure to be www.proxy.com:8080 as well?
>
>
> Manually configure the proxy settings the way you want them and then look
> at the various Proxy*** named values under that same registry key...
>
> --
> Michael Harris
> Microsoft MVP Scripting
>



Re: VBScript to set IE proxies by Tom

Tom
Fri Dec 31 11:52:57 CST 2004

>"Michael Harris (MVP)" <mikhar at mvps dot org> wrote in message
>news:u1Km%>23Qt7EHA.2196@TK2MSFTNGP14.phx.gbl...
>> Brett Baisley wrote:
>>> I found that:
>>> Set WshShell = CreateObject("WScript.Shell")
>>> WshShell.RegWrite
>>> "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
>>> Settings\ProxyEnable", 1,"REG_DWORD"
>>>
>>> will set it to enable the proxy, but how do you specify I want the
>>> HTTP proxy to be www.proxy.com:8080, FTP to be www.proxy.com:8080,
>>> and secure to be www.proxy.com:8080 as well?
>>
>>
>> Manually configure the proxy settings the way you want them and then look
>> at the various Proxy*** named values under that same registry key...
>>
>> --
>> Michael Harris
>> Microsoft MVP Scripting
Try the key
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\ProxyServer

This is a REG_SZ.

Example proxy string is

"http=www.proxy.com:8080;https=www.proxy.com:8080"

If you are on a domain though this is better set through a group policy than
a script. Using policies (Win2K or later for definite) you can change from
per user to per PC proxy settings this is useful when dealing with a cyber
cafe type operation.

Tom Merryweather
Network Engineer



Re: VBScript to set IE proxies by Brett

Brett
Fri Dec 31 15:43:13 CST 2004

I'll give that one a shot. Thanks!


"Tom Merryweather" <NOSPAMnews@merryweather.demon.co.uk> wrote in message
news:cr43ng$5dt$1$8302bc10@news.demon.co.uk...
> >"Michael Harris (MVP)" <mikhar at mvps dot org> wrote in message
> >news:u1Km%>23Qt7EHA.2196@TK2MSFTNGP14.phx.gbl...
>>> Brett Baisley wrote:
>>>> I found that:
>>>> Set WshShell = CreateObject("WScript.Shell")
>>>> WshShell.RegWrite
>>>> "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
>>>> Settings\ProxyEnable", 1,"REG_DWORD"
>>>>
>>>> will set it to enable the proxy, but how do you specify I want the
>>>> HTTP proxy to be www.proxy.com:8080, FTP to be www.proxy.com:8080,
>>>> and secure to be www.proxy.com:8080 as well?
>>>
>>>
>>> Manually configure the proxy settings the way you want them and then
>>> look at the various Proxy*** named values under that same registry
>>> key...
>>>
>>> --
>>> Michael Harris
>>> Microsoft MVP Scripting
> Try the key
> "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
> Settings\ProxyServer
>
> This is a REG_SZ.
>
> Example proxy string is
>
> "http=www.proxy.com:8080;https=www.proxy.com:8080"
>
> If you are on a domain though this is better set through a group policy
> than a script. Using policies (Win2K or later for definite) you can change
> from per user to per PC proxy settings this is useful when dealing with a
> cyber cafe type operation.
>
> Tom Merryweather
> Network Engineer
>
>