+ Post New Thread
Results 1 to 2 of 2
Scripts Thread, Script to untick 'Automatically detect settings in Coding and Web Development; I would like a script to untick the 'automatically detect settings' box in Internet options. Group policy does not seem ...
  1. #1

    Join Date
    Jan 2013
    Posts
    32
    Thank Post
    2
    Thanked 6 Times in 5 Posts
    Rep Power
    5

    Script to untick 'Automatically detect settings

    I would like a script to untick the 'automatically detect settings' box in Internet options. Group policy does not seem to handle this in the same way that it does the proxy server

  2. #2


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,811
    Thank Post
    262
    Thanked 2,969 Times in 2,183 Posts
    Rep Power
    847
    Here's a PowerShell script that does what you need. Just change the number shown in red with one of the numbers shown in the table (in purple) depending upon whether you have the "Use a proxy server for your LAN" enabled or disabled.

    Code:
    $key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections'
    $data = (Get-ItemProperty -Path $key -Name DefaultConnectionSettings).DefaultConnectionSettings
    $data[8] = 3
    
    Set-ItemProperty -Path $key -Name DefaultConnectionSettings -Value $data
    
    <#
        'Automatically detect settings' box 
    -末末末末末末末末-末末末末-末末末末-------
                     |  Checked  |  Unchecked  |
    -末末末末末末末末末末末末末末末末末末-------
    | Proxy enabled  |    11     |      3      |
    -末末末末末末末末末末末末末末末末末末------
    | Proxy disabled |     9     |      1      |
    -末末末末末末末末-末末末末-末末末末末-----
    #>
    Credits / More info
    http://stackoverflow.com/a/15914470
    http://stackoverflow.com/a/1674377
    http://atyoung.blogspot.co.uk/2012/0...softwarem.html



SHARE:
+ Post New Thread

Similar Threads

  1. Script to run automaticly
    By Newton in forum Scripts
    Replies: 1
    Last Post: 18th June 2009, 05:24 PM
  2. Replies: 0
    Last Post: 24th January 2008, 03:58 PM
  3. Automatically detect settings
    By techyphil in forum Windows
    Replies: 5
    Last Post: 26th November 2007, 10:28 PM
  4. Replies: 6
    Last Post: 11th July 2007, 10:53 PM
  5. Script to set active directory object security
    By meastaugh1 in forum Windows
    Replies: 4
    Last Post: 5th January 2007, 05:28 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •