Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

windows

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

like image 259
Sathish Avatar asked Oct 24 '11 10:10

Sathish


1 Answers

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
    
like image 133
Seaner992 Avatar answered Nov 17 '22 10:11

Seaner992