以下是一个可以关闭Windows 10系统代理的批处理脚本:

@echo off

REM 关闭自动检测代理设置
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoDetectProxy /t REG_DWORD /d 0 /f

REM 关闭使用代理服务器设置
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f

REM 重新启动网络服务
netsh interface set interface name="Wi-Fi" admin=disable
netsh interface set interface name="Wi-Fi" admin=enable

echo 代理已成功关闭
pause

请按照以下步骤执行上述脚本:

  1. 打开文本编辑器(例如Notepad)。
  2. 将上述脚本复制粘贴到文本编辑器中。
  3. 将脚本保存为以.bat为扩展名的文件(例如disable_proxy.bat)。
  4. 双击运行该批处理文件。
  5. 脚本将关闭Windows 10系统的代理设置,并显示"代理已成功关闭"的消息。

请注意,如果你的网络连接名称不是"Wi-Fi",你可能需要修改脚本中的网络连接名称。你可以使用以下命令列出所有网络连接名称:

netsh interface show interface

然后将脚本中的"Wi-Fi"替换为你的网络连接名称。

关闭Windows 10代理设置的批处理脚本 - 自动检测、使用代理服务器都关掉

原文地址: https://www.cveoy.top/t/topic/p9wE 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录