Reputation: 61
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
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
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