Last active
December 13, 2016 16:07
-
-
Save trplll/d5a78e4b430fefffbb63df34ac1d54fc to your computer and use it in GitHub Desktop.
VB script to clear and disable system proxy by editing the registry settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Dim objShell, RegLocate, RegLocate1 | |
Set objShell = WScript.CreateObject("WScript.Shell") | |
On Error Resume Next | |
RegLocate = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer" | |
objShell.RegWrite RegLocate,"","REG_SZ" | |
RegLocate = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable" | |
objShell.RegWrite RegLocate,"0","REG_DWORD" | |
WScript.Quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment