Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


IE - Automatically Detect Settings - SOLVED

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,30518
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> IE - Automatically Detect Settings - SOLVED
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 IE - Automatically Detect Settings - SOLVED - 2/1/2006 5:25:34 AM   
  Country73


Posts: 710
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
Is there a way to check whether this setting is checked or not on a remote computer through a script?

I've been asked to write a script to check this across our network since it may cause some issues when we start implementing our Proxy Settings.
We have a mixture of W2K and XPSP2 machines on our network, and roughly about 2000+ machines to check this on.

Of course once these settings are recorded, I'll probably have to look into a way of changing these settings, but I haven't had any luck on finding out where this setting is located when accessing a remote computer.
If it's stored in the registry, then I haven't had any luck locating it.
I've been looking into some WMI scripts, but have only been able to locate a script for detecting the Proxy Settings. (Which doesn't seem to show whether the "Automatically Detect Settings" is set or not)

Any help would be greatly appreciated.
Thanks,

< Message edited by Country73 -- 2/22/2006 7:32:15 AM >
 
 
Post #: 1
 
 RE: IE - Automatically Detect Settings - 2/1/2006 6:42:34 AM   
  ziminski

 

Posts: 79
Score: 2
Joined: 1/8/2006
Status: offline
Const HKEY_CURRENT_USER = &H80000001

strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")

strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings"

strValueName = "ProxyEnable"
dwValue = 1
objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue

strValueName = "ProxyServer"
strValue = "svcproxy:80"
objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue

strValueName = "ProxyOverride"
strValue = "<local>"
objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue

(in reply to Country73)
 
 
Post #: 2
 
 RE: IE - Automatically Detect Settings - 2/1/2006 7:02:15 AM   
  Country73


Posts: 710
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
Thanks for the reply, but I'm not looking at actually setting the Proxy up by script, that will be handled through GPO.

I'm needing a script that can check for the "Automatically Detect Settings" and whether it is enabled or not.
This may cause issues when we add our Proxy settings.

I know that you can physically check this through Internet Options, but I'm needing to check this on remote computers.

(in reply to ziminski)
 
 
Post #: 3
 
 RE: IE - Automatically Detect Settings - 2/1/2006 8:28:30 AM   
  ziminski

 

Posts: 79
Score: 2
Joined: 1/8/2006
Status: offline
If strValueName = "ProxyEnable"
dwValue = 1
then the box is checked
if strValueName = "ProxyEnable"
dwValue = 0
Then the box is not checked.

(in reply to Country73)
 
 
Post #: 4
 
 RE: IE - Automatically Detect Settings - 2/1/2006 8:52:57 AM   
  Country73


Posts: 710
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
Yes, that works fine for checking the Proxy setting, but that is not what I'm trying to check.

I'm wanting to check "Automatically detect settings"  not the "Use a proxy server for your LAN"

(in reply to ziminski)
 
 
Post #: 5
 
 RE: IE - Automatically Detect Settings - 2/1/2006 11:27:59 AM   
  Cybex


Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
It is located in this key under the "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" value.  The data string is a collection of all the current settings.  I isolated the section for that check box to the 5th hex set.  Everytime you turn it on or off it increments up by one.  setting it to an even number sets it to checked, odd numbers set it to unchecked.  I would set everthing the way you want it and just rewrite the entire REG_BINARY the way it exports when configured correctly.

Checked:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections]
"DefaultConnectionSettings"=hex:3c,00,00,00,14,00,00,00,09,00,00,00,0e,00,00,\
00,31,32,37,2e,30,2e,30,2e,31,3a,38,30,38,30,09,00,00,00,6c,6f,63,61,6c,68,\
6f,73,74,0b,00,00,00,31,31,31,2e,31,31,2e,31,31,31,31,01,00,00,00,00,00,00,\
00,30,fd,35,de,8d,27,c6,01,03,00,00,00,c0,a8,01,73,c0,a8,b8,01,c0,a8,85,01,\
00,00,00,00,00,00,00,00

Unchecked
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections]
"DefaultConnectionSettings"=hex:3c,00,00,00,15,00,00,00,01,00,00,00,0e,00,00,\
00,31,32,37,2e,30,2e,30,2e,31,3a,38,30,38,30,09,00,00,00,6c,6f,63,61,6c,68,\
6f,73,74,0b,00,00,00,31,31,31,2e,31,31,2e,31,31,31,31,01,00,00,00,00,00,00,\
00,30,fd,35,de,8d,27,c6,01,03,00,00,00,c0,a8,01,73,c0,a8,b8,01,c0,a8,85,01,\
00,00,00,00,00,00,00,00



Cybex

_____________________________

Common sense is not so common.

(in reply to Country73)
 
 
Post #: 6
 
 RE: IE - Automatically Detect Settings - 2/2/2006 1:19:58 AM   
  Country73


Posts: 710
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
Thanks for that bit of information Cybex!
I came across that registry key last night, but I did not have a chance to go in and start messing with it.
I'll start looking into this a little more when I get a chance today.

One other question,
I havne't really messed around with GPO, but if my group will be setting up our "future" proxy with GPO; wouldn't they also be able to make this change as well?


Anyways, thanks for the info

(in reply to Cybex)
 
 
Post #: 7
 
 RE: IE - Automatically Detect Settings - 2/2/2006 2:14:43 AM   
  Cybex


Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
I believe so.

Cybex

_____________________________

Common sense is not so common.

(in reply to Country73)
 
 
Post #: 8
 
 RE: IE - Automatically Detect Settings - 2/21/2006 4:17:19 AM   
  Country73


Posts: 710
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
Just an update on the progress of this "little" project I've been working on.

It looks like we will not be using GPO to make these changes across our network.
(GPO Administrator will not allow this due to more overhead he will have to deal with to set all of this up for our area)

The other issue is that we will not be making the changes through the HKEY_CURRENT_USER key.
(Handed down from management)

I've found a way to fix all of these settings on a W2K machine, but the same settings do not take care of them on an XP Machine.
Here are the registry keys that will be created to make the changes:


      

If these keys are created on an XP Machine, then all of the settings are taken care of except for the "Automatically detect settings", this is still checked.
(Yes, a lot of those entries are created so that they will be in place once we enable the proxy)
Anyone have any other ideas as to how to fix this on an XP Machine? (SP2)

(in reply to Cybex)
 
 
Post #: 9
 
 RE: IE - Automatically Detect Settings - 2/22/2006 7:31:26 AM   
  Country73


Posts: 710
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
Last registry entry that took care of my remaining issue:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings
[REG_DWORD] Security_HKLM_only=1


1 = Workstation settings
0 = User settings

http://www.winguides.com/registry/display.php/1133/


(in reply to Country73)
 
 
Post #: 10
 
 RE: IE - Automatically Detect Settings - 5/2/2007 1:25:38 AM   
  LMichel

 

Posts: 1
Score: 0
Joined: 5/2/2007
Status: offline
Cybex,

My experience show that there is sometings wrong in your conclusion.
5th hex set is incremented each time you go te LAN settings. It's a counter.
Look at the 9th hex. Bit 3 of the 9th hex contains the state of the check box. In your exemple it changes from 9 to 1.



quote:

ORIGINAL: Cybex

It is located in this key under the "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" value.  The data string is a collection of all the current settings.  I isolated the section for that check box to the 5th hex set.  Everytime you turn it on or off it increments up by one.  setting it to an even number sets it to checked, odd numbers set it to unchecked.  I would set everthing the way you want it and just rewrite the entire REG_BINARY the way it exports when configured correctly.

Checked:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections]
"DefaultConnectionSettings"=hex:3c,00,00,00,14,00,00,00,09,00,00,00,0e,00,00,\
00,31,32,37,2e,30,2e,30,2e,31,3a,38,30,38,30,09,00,00,00,6c,6f,63,61,6c,68,\
6f,73,74,0b,00,00,00,31,31,31,2e,31,31,2e,31,31,31,31,01,00,00,00,00,00,00,\
00,30,fd,35,de,8d,27,c6,01,03,00,00,00,c0,a8,01,73,c0,a8,b8,01,c0,a8,85,01,\
00,00,00,00,00,00,00,00

Unchecked
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections]
"DefaultConnectionSettings"=hex:3c,00,00,00,15,00,00,00,01,00,00,00,0e,00,00,\
00,31,32,37,2e,30,2e,30,2e,31,3a,38,30,38,30,09,00,00,00,6c,6f,63,61,6c,68,\
6f,73,74,0b,00,00,00,31,31,31,2e,31,31,2e,31,31,31,31,01,00,00,00,00,00,00,\
00,30,fd,35,de,8d,27,c6,01,03,00,00,00,c0,a8,01,73,c0,a8,b8,01,c0,a8,85,01,\
00,00,00,00,00,00,00,00



Cybex

(in reply to Cybex)
 
 
Post #: 11
 
 RE: IE - Automatically Detect Settings - 1/20/2008 10:28:37 PM   
  garygbm

 

Posts: 1
Score: 0
Joined: 1/20/2008
Status: offline
Assuming you have XP sp2 installed.

HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Internet Explorer\Control Panel\Autoconfig

To disable the Automatically Detect Settings check box, set the value of this DWORD (Autoconfig) to 1.

Create the keys for IE and control panel if they dont exist.

This disables both the "auto check box" and the "auto script" That area becomes greyed out.

Regards,

Gary

(in reply to LMichel)
 
 
Post #: 12
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> IE - Automatically Detect Settings - SOLVED Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts