brigadier icon indicating copy to clipboard operation
brigadier copied to clipboard

Internet Explorer engine is not available

Open jamstone opened this issue 3 years ago • 4 comments

I suspect since IE has been killed in new versions of Windows, Invoke-WebRequest fails now. Running the PowerShell script give the following error message:

Invoke-WebRequest : The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again.

Adding the -UseBasicParsing parameter to each instance of Invoke-WebRequest and Invoke-RestMethod seems to resolve the issue.

jamstone avatar Jun 25 '22 23:06 jamstone

Use this command to disable first run and it will work Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Internet Explorer\Main" -Name "DisableFirstRunCustomize" -Value 2

retets avatar Jul 06 '23 23:07 retets

Thanks @retets I confirm this reg key fixes the issue. :)

ericohlin avatar Oct 26 '23 21:10 ericohlin