title: IE ProxyEnable via registry not working WIN 10
body: <p>How weird is this?</p>
  
  <p>When I enable proxy in Internet Explorer 11 using the registry method, I check my IP and it's not proxied. <strong>I click on Internet Options > Lan Settings (nothing else) then my IP changes to the proxy IP</strong>. </p>
  
  <p>While the lan settigs window already has Proxy checkbox checked. I don't click "OK" or anything for the changes to take effect, Just by clicking LAN settings the changes take effect as they should. 
  The same is true for Disabling the proxy. </p>
  
  <blockquote>
    <p>[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
    Settings] "ProxyEnable"=dword:00000001</p>
  </blockquote>
  
  <p>This code doesn't work either. It executes fine as RemoteSigned policy but makes no difference.</p>
  
  <pre><code>function refresh-system() {
      $signature = @'
  [DllImport("wininet.dll", SetLastError = true, CharSet=CharSet.Auto)]
  public static extern bool InternetSetOption(IntPtr hInternet, int dwOption, IntPtr lpBuffer, int dwBufferLength);
  '@
  
      $INTERNET_OPTION_SETTINGS_CHANGED   = 39
      $INTERNET_OPTION_REFRESH            = 37
      $type = Add-Type -MemberDefinition $signature -Name wininet -Namespace pinvoke -PassThru
      $a = $type::InternetSetOption(0, $INTERNET_OPTION_SETTINGS_CHANGED, 0, 0)
      $b = $type::InternetSetOption(0, $INTERNET_OPTION_REFRESH, 0, 0)
      return $a -and $b
  }
  </code></pre>
  
  <ul>
  <li>IE 11.1593</li>
  <li>Automatically detect settings = unchecked</li>
  <li>Cache disabled = via GPO</li>
  <li>Windows 10 LTSB 1607</li>
  <li>No domain = Local user/Workgroup</li>
  </ul>