Link to home
Start Free TrialLog in
Avatar of acornick
acornick

asked on

Auto detect settings in IE6 - What registry key?

What registry keys are changed when you choose "Automatically detect settings" in IE6 on a Windows 2000 PC?

We want to set all machines to Automatically Detect Settings but I can't find the registry change.  At the moment we have use a proxy server ticked and I can find it in the registry of the Current User but can't find Auto Detect.
ASKER CERTIFIED SOLUTION
Avatar of ldieno
ldieno

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of acornick
acornick

ASKER

Lenny,

The key you referenced doesn't have a 1 or 0 option it has a heap of hex characters?

HKCurrentUser\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\DefaultConnectionSettings (REG_BINARY)

My apologies,

I should have posted a link to some scripts I found,
these may help you:

http://cwashington.netreach.net/depo/view.asp?Index=483&ScriptType=command
http://www.gwspikval.com/jooel/UDF/udf/000420.htm

- Lenny
Lenny,

Sorry it took me so long, I found the following VBS script worked with some mods.

We posted this VBS on an intranet error page so the user could click on it and when they exited and re-entered it recreated the necessary keys and set the connection settings to Autodetect.

Thanks for your help.


Dim WshShell, bKey
Set WshShell = WScript.CreateObject("WScript.Shell")

'bKey = WshShell.RegRead("HKEY_CURRENT_USER\Software\ACME\FortuneTeller\")
'WScript.Echo
'WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet 'Settings")

WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\", 1, "REG_BINARY"

WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 0, "REG_DWORD"

WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigURL", "", "REG_SZ"

WshShell.RegDelete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\"

WshShell.RegDelete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable"

WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\", 1, "REG_BINARY"
Dim WshShell, bKey
Set WshShell = WScript.CreateObject("WScript.Shell")

'bKey = WshShell.RegRead("HKEY_CURRENT_USER\Software\ACME\FortuneTeller\")
'WScript.Echo
'WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet 'Settings")

WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\", 1, "REG_BINARY"

WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 0, "REG_DWORD"

WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigURL", "", "REG_SZ"

WshShell.RegDelete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\"

WshShell.RegDelete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable"

WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\", 1, "REG_BINARY"