Hello All,

Although there are UDF's published for setting and retrieving individual IE proxy options I could not find any information regarding setting/clearing multiple options.

Set Auto Detect Settings UDF

This UDF allows the user to set or clear the Auto Detects Settings option by editing the fourth bit in the ninth byte in the
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\DefaultConnectionSettings]
binary registry value.

Below is an explanation of which options is set/cleared by each bit in the ninth byte;

0000 [0]000

This bit controls "Auto Detect Settings"
0000 0[0]00

This bit controls "Use Automatic configuration Script"
0000 00[0]0

This bit controls "Use a proxy server for your LAN"

Using the same method as used in the UDF above each of these options can be set/cleared by using the following Boolean comparisons;

to clear the second bit use # & 247 [1111 0111]
to clear the third bit use # & 251 [1111 1011]
to clear the the fourth bit use # & 253 [1111 1101]


to set the second bit use # | 8 [0000 1000]
to set the third bit use # | 4 [0000 0100]
to set the fourth bit use # | 2 [0000 0010]

To statically set each option or a combination of options the following values can be used.

02 = "Use a proxy server for your LAN"
04 = "Use Automatic configuration Script"
08 = "Auto Detect Settings"
0A = "Auto Detect Settings" and "User a proxy server for your LAN"
0C = "Auto Detect Settings" and "Use Automatic Configuration Script"

Please beware that when using the UDF referenced above and published here to set the "Auto Detect Settings" option always results in the ninth byte being set to 8 which inadvertently clears the other two settings.

This information was obtained manually and is not an extensive description of this registry entry. If anyone knows of a source where an extensive description can be obtained this info would be greatly appreciated for future reference.

James.