When I execute 2 specific powershell scripts in VC I get
System.Management.Automation.CmdletInvocationException: 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. ---> System.NotSupportedException: 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.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.VerifyInternetExplorerAvailable(Boolean checkComObject)
at Microsoft.PowerShell.Commands.InvokeWebRequestCommand.ProcessResponse(WebResponse response)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at TaskPowerShell.PowerShellTaskClass.Run(ProcessPowerShellTaskInfoClass ti, StringBuilder& sbStandardOut, StringBuilder& sbStandardError, Boolean& bolResult)
But both scripts execute without issue in powershell and powershell ISE. I also run 7 other powershell scripts in VC without issues. Why would VC error out when the scripts execute without issue outside of VC?
Edit: It appears that the script isn't even executing long enough to get past the very first wget in the script because I added a start-sleep -s 10 right after it.
Edited by moderator
2017-11-08T13:25:50Z
|
Reason: Not specified