How to modify LAN Proxy Exception List via Powershell

Example of the Powershell script which can modify IE LAN Proxy Exception List to keep current settings (for example pulled by GPO) and extend with custom exception list.Most important is to modify first line.


$ProxyExceptionList = ";*;*"

$ProxyProperty = Get-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"

If ($ProxyProperty.ProxyOverride) {
    $OldValue = $ProxyProperty.ProxyOverride
    $NewValue = $OldValue+$ProxyExceptionList
    $ProxyProperty | Set-ItemProperty -Name ProxyOverride -Value $NewValue
} else {
    Write-Warning "Proxy overrides not set!"

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.