Invoke-WebRequest causes IE content blocked dialog Invoke-WebRequest causes IE content blocked dialog powershell powershell

Invoke-WebRequest causes IE content blocked dialog


It seems Invoke-WebRequest requires IE unless you specify -UseBasicParsing parameter. see: https://msdn.microsoft.com/powershell/reference/5.1/microsoft.powershell.utility/Invoke-WebRequest

-UseBasicParsing Indicates that the cmdlet uses the response object for HTML content without Document Object Model (DOM) parsing.

This parameter is required when Internet Explorer is not installed on the computers, such as on a Server Core installation of a Windows Server operating system.


Click Add and add about:security_powershell.exe to Trusted Sites.


Perhaps systems have changed since Raf's answer above was posted. I found it didn't work for me.

What did work was:-

  1. Open Internet Explorer
  2. Go to Tools->Internet options
  3. Select the Security Tab
  4. Click Local Intranet
  5. Click sites
  6. Enter *.security_powershell.exe
  7. Click Add