Open jamstone opened 2 years ago
Use this command to disable first run and it will work Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Internet Explorer\Main" -Name "DisableFirstRunCustomize" -Value 2
Thanks @retets I confirm this reg key fixes the issue. :)
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.