Skip to content

Instantly share code, notes, and snippets.

@trplll
Last active December 13, 2016 16:07
Show Gist options
  • Save trplll/d5a78e4b430fefffbb63df34ac1d54fc to your computer and use it in GitHub Desktop.
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
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