title: Powershell iwr fails when attempting -SkipCertificateCheck
body: <p>Using <strong><a href="/questions/tagged/powershell" class="post-tag" title="show questions tagged &#39;powershell&#39;" rel="tag">powershell</a></strong> (version 5.1.18362.145) and attempting to use <code>Invoke-WebRequest</code> it fails when using the <code>-SkipCertificateCheck</code>.</p>
  
  <p>I don't know what to do about this as it seems to be documented on the <a href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7" rel="nofollow noreferrer">msdn</a>. I have tried running <code>Update-Module</code> just in case the module was an old version however that has not rectified the issue.</p>
  
  <p>Command:    </p>
  
  <pre><code>iwr -SkipCertificateCheck google.com -UseBasicParsing -Method Head
  </code></pre>
  
  <blockquote>
    <p>Error:    </p>
  </blockquote>
  
  <pre><code>Invoke-WebRequest : A parameter cannot be found that matches parameter name 'SkipCertificateCheck'
  
  At line:1 char:5
  + iwr -SkipCertificateCheck google.com -Method Head
  +     ~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
      + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand`
  </code></pre>
  
  <p>Does anyone know how to get <strong><code>Invoke-WebRequest</code></strong> to work without checking certificates? </p>
  
  <p>The overall goal of this is to use <strong><code>Invoke-WebRequest</code></strong> with a site that has a self signed certificate.</p>