mirror of
https://github.com/hufrea/byedpi.git
synced 2024-12-23 06:42:27 +00:00
13 lines
647 B
Batchfile
13 lines
647 B
Batchfile
@echo off
|
|
|
|
rem Run as administrator
|
|
reg query "HKU\S-1-5-19\Environment" >nul 2>&1
|
|
if not %errorlevel% equ 0 (
|
|
powershell.exe -windowstyle hidden -noprofile "Start-Process '%~dpnx0' -Verb RunAs"
|
|
exit /b 0
|
|
)
|
|
|
|
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 "socks=127.0.0.1:1080" /f
|
|
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v "MigrateProxy" /f
|
|
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v "AutoDetect" /f |