title: Using Invoke-Webrequest in PowerShell 3.0 spawns a Windows Security Warning
body: <p>When using the following code in PowerShell 3.0</p>
  
  <pre><code>PS&gt; $data = Invoke-Webrequest -Uri stackoverflow.com
  PS&gt; $data.ParsedHtml.getElementsByTagName("div")
  </code></pre>
  
  <p>I get this warning: </p>
  
  <blockquote>
    <p>Windows Security Warning - To allow this website to provide information 
    personalized for you, will you allow it to put a small file (called a cookie)
    on your computer?</p>
  </blockquote>
  
  <p>I would really like to <strong>suppress this message or add code to handle cookies</strong>, so the code could be scheduled. </p>
  
  <p>I have tried trusting the site in IE allowing cookies and even lowering the "User Account Control Settings" but with no avail.</p>