Tag: proxy

  • Check Proxy settings from Powershell

    To check the proxy settings like ProxyOveride or if it is enabled or not:

    Get-ItemProperty -Path "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
    

    To disable proxy from PowerShell:

    Set-ItemProperty -Path "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" ProxyEnable -value 0

    To enable proxy from PowerShell:

    Set-ItemProperty -Path "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" ProxyEnable -value 1

     

  • IE Enable/Disable Proxy Settings via Registry

    Whatever the reason may be to enable or disable proxy, here is a simple registry hack to turn it on or off.

    Open powershell in admin mode.

    Enable:

    Set-ItemProperty -Path "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" ProxyEnable -value 1

    Disable:

    Set-ItemProperty -Path "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" ProxyEnable -value 0

    The above method require an IE restart, alternatively if you don’t want to restart IE. Make similar change under:

    [HKEY_USERS\<your SID>\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

    To find your SID read here.