Proxy servers with IE8

Microsoft Visio professional 2003 (full...
October 19, 2010 at 01:58:56
Specs: Windows XP, Dell percision 530
Ok so earlier I asked about setting proxy servers and all that non sense and I was running IE6 ,,, our company has upgraded to IE8 and new problem arise I will post and example of my script and shopw where things are not working

' Start
wShell.Exec("regedit /s 01u.reg") ><--- this is registry entry with proxy server in place ... I just extracted this .reg from "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
and this works


oShell.Run """C:\Program Files\Internet Explorer\IExplore.exe"

Response = WshShl.Popup("Did the Proxy settings work? This was prxsz08h.reg", ," Operations", 4)

If Response = 6 Then


'send Alt-F4 to close window
WshShell.SendKeys "%{F4}"

'next in vbs code
wShell.Exec("regedit /s 01c.reg")
Wscript.sleep 10000
WSHShell.run "iexplore.exe http://www.google.com"

'oShell.Run """C:\Program Files\Internet Explorer\IExplore.exe"

Response = WshShl.Popup("Did the Proxy settings work for prxss01c?", ,"CSC Operations", 4)

If Response = 6 Then


WshShell.SendKeys "%{F4}" Now this works as internet explorer tools < internet options < connections < LAN settings ........ says

but when I open an IE window it still has the first proxy setting enabled even though it says another is enabled ..... SO it dont work

However really it does work ONLY thing is that i must goto IE < Tools < internet options < connections < LAN settings and click the OK button ---- Again the right proxy settings are already in the field and automatic discovery option is off and use proxy server BOX is checked as it should be


WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer", intcounter

WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 1, "REG_DWORD"

"EnableAutoProxyResultCache"=dword:00000000

TO SUM UP
Unless I open internet options > connections > LAN settings > and click ok the settings will not truly apply to any new IE windows that I open they are still using the first proxy setting :-( I have been beating my head over this

Learning in progress..........


See More: Proxy servers with IE8

Report •

#1
October 21, 2010 at 05:52:56
I have no idea what orginal thread you're talking about, so instead I'll just ask why you don't just configure it in the user's startup scripts and call it a day. I'll also throw up a relevent link: TechNet.

How To Ask Questions The Smart Way


Report •

#2
October 22, 2010 at 01:29:00
Because I work for the Operations group and this task is part of our checks meaning we have to check the availability of all proxy servers

Learning in progress..........


Report •
Related Solutions


Ask Question