【问题标题】:How to change chrome proxy via command line windows?如何通过命令行窗口更改 chrome 代理?
【发布时间】:2018-06-09 19:55:22
【问题描述】:

我已尝试通过以下方式更新设置:

netsh winhttp set proxy proxy-server="127.0.0.1:8080" bypass-list=""

也试过了:

netsh winhttp set proxy proxy-server="http=127.0.0.1:8080" bypass-list=""

但没有效果,流量只是不通过代理。

我也用过这个:

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d 127.0.0.2:8080 /f

但问题是我无法覆盖设置,一旦我选择了一个代理,即使我禁用了代理:

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f

设置仍然存在,我必须转到 Internet Explorer > Internet 选项 > 连接 > 局域网设置来更改它,该命令不再起作用,只是第一次。

【问题讨论】:

  • 这个可以通过cmd给谷歌浏览器设置代理服务器吗?对吗?

标签: windows google-chrome proxy netsh


【解决方案1】:

我错了,

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f

成功了,问题是,必须重新启动浏览器才能应用更改。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-06-23
    • 2016-07-19
    • 2022-06-16
    • 1970-01-01
    • 2020-05-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多