Skip to content

Instantly share code, notes, and snippets.

View swy1996's full-sized avatar
๐ŸŒ
Working from home

swy1996

๐ŸŒ
Working from home
View GitHub Profile
@swy1996
swy1996 / powershell-proxy-set-clear.ps1
Created August 3, 2019 03:21 — forked from famousgarkin/powershell-proxy-set-clear.ps1
PowerShell Set-Proxy, Clear-proxy
# NOTE: registry keys for IE 8, may vary for other versions
$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings'
function Clear-Proxy
{
Set-ItemProperty -Path $regPath -Name ProxyEnable -Value 0
Set-ItemProperty -Path $regPath -Name ProxyServer -Value ''
Set-ItemProperty -Path $regPath -Name ProxyOverride -Value ''
[Environment]::SetEnvironmentVariable('http_proxy', $null, 'User')