Skip to content

Instantly share code, notes, and snippets.

@everyx
everyx / enable_pacproxy.bat
Last active April 25, 2023 20:55
A batch script to enable proxy via a proxy file.
@echo off
goto enable-pacproxy
:enable-pacproxy
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "http://192.168.0.10:8093/pac" /f
goto end
:disable_proxy