Sathish
Sathish

Reputation: 61

How to Set "Automatically Detect settings" Proxy thru command line?

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

Upvotes: 6

Views: 21144

Answers (2)

Seaner992
Seaner992

Reputation: 397

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
    

Upvotes: 12

weberik
weberik

Reputation: 2706

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.

Upvotes: 0

Related Questions