Reputation: 71
I am trying to set "automatically detect settings" using netsh winhttp command. But I could not find a way to set it.
Upvotes: 7
Views: 21273
Reputation: 407
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: 13
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