powershell - Changes to proxy settings in Windows registry have no effect -
during course of day have turn on , off "use automatic configuration script" option in proxy settings access web destinations otherwise blocked , vice versa. in other words, checkbox:
i found changes autoconfigurl
property in hkcu:\software\microsoft\windows\currentversion\internet settings
. when checkbox on, property set configuration script url, when it's off property removed. wrote simple powershell script job:
$regkey = "hkcu:\software\microsoft\windows\currentversion\internet settings" $propertyname = "autoconfigurl" $configurationscript = "http://example.com/config.dat" $proxystatus = (get-itemproperty -path $regkey -erroraction silentlycontinue).$propertyname if ([string]::isnullorempty($proxystatus)) { set-itemproperty -path $regkey -name $propertyname -value $configurationscript } else { remove-itemproperty -path $regkey -name $propertyname }
it changes registry way need, these changes have no effect. need open lan settings window under internet properties / connections , proxy settings changed (i don't need press ok or cancel buttons, just open window).
are there additional commands should executed after making changes registry apply changes?
Comments
Post a Comment