Hi folks,
I've got the following scenario:
We run in our domain XP-SP2 and 2K workstations with Internet Explorer 6 and
7.
I'm looking for a solution to set up two checkboxes within IE6 and IE7:
"Automatically detect settings" and "Use automatic configuration script" on
the "Local Area Network Settings" tab.
What I got so far is:
I built an ADM template file to set the property "Use automatic
configuration script". It works fine.
It's not a problem to solve this in VBS because the property is saved in the
registry in
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings
in the variable AutoConfigURL.
The catch is to check the box "Automatically detect settings". For IE7 I
found the solution in deleting the whole key
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\Connections
IE7 re-creates it after start and the desired box is checked.
IE6 doesn't work in the same way. It also creates the key after deletion,
but without the box checked.
The status of the box "Automatically detect settings" seems to be stored in
the REG_Binary values in the key above.
Because I don't know how to interpret this type of value I tried another way
using WMI.
Yes, I was able to retrieve IEs settings with this little script and tried
to save a changed value back using the put_ method.
strComputer = "."
'~ Set objWMIService = GetObject("winmgmts:\\" & strComputer _
'~ & "\root\cimv2\Applications\MicrosoftIE")
'~ Set colIESettings = objWMIService.ExecQuery _
'~ ("Select * from MicrosoftIE_LANSettings")
'~ For Each strIESetting in colIESettings
'~ 'Wscript.Echo "Autoconfiguration proxy: " & strIESetting.AutoConfigProxy
'~ 'Wscript.Echo "Autoconfiguration URL: " & strIESetting.AutoConfigURL
'~ 'Wscript.Echo "Autoconfiguration Proxy detection mode: " & _
'~ strIESetting.AutoProxyDetectMode = 1
'~ 'Wscript.Echo "Proxy: " & strIESetting.Proxy
'~ 'Wscript.Echo "Proxy override: " & strIESetting.ProxyOverride
'~ 'Wscript.Echo "Proxy server: " & strIESetting.ProxyServer
'~ strIESetting.Put_
'~ Next
Unfortunately the provider doesn't support this method in this class.
Do you have an idea to solve this problem?
I'm not sure about using branding, because I need to keep the settings
flexible to change.
Thanks a lot.
Andreas Woll