8

I am trying to set "automatically detect settings" using netsh winhttp command. But I could not find a way to set it.

1
  • did you try the netsh winhttp command: "reset proxy"? Commented Oct 25, 2011 at 18:20

2 Answers 2

13

You can do it with this:

  • To Enable 'Automatically Detect Settings'

    REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoDetect /t REG_DWORD /d 1 /f
    
  • To Disable 'Automatically Detect Settings'

    REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoDetect /t REG_DWORD /d 0 /f
    
Sign up to request clarification or add additional context in comments.

1 Comment

Tested & worked. This is batch command. I created two .bat files for enabling & disabling. Thank you very much.
0

AFAIK there is no global "automatically detect settings" neither a netsh command for this. the setting is specific to a browser. i.e. the internet explorer is configured using reg keys. see the following examples: http://support.microsoft.com/kb/819961

once you know the right regkey you can use the reg command to set it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.