thank for your earlier reply. I have done all you said, but am now getting error message when I run the Yahoo Quotes script that I've appended below. I've no idea what to do and would appreciate your thoughts.
Thanks, Matthew.
======================================================================================= 12:33:29 --- Starting script GetQuotesYahoo.ps1. Symbol count: 64. MinDate: 2015-12-31 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. At C:\Users\IEUser\OneDrive\Current PS stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:33 char:17 + ... $wrCookie = Invoke-WebRequest -Uri $urlCookie -SessionVariable webses ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotImplemented: (:) [Invoke-WebRequest], NotSupportedException + FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.I nvokeWebRequestCommand
You cannot call a method on a null-valued expression. At C:\Users\IEUser\OneDrive\Current PS stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:35 char:5 + $crumbStart = $webCookie.IndexOf($crumbStr); if ($crumbStart -eq ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression. At C:\Users\IEUser\OneDrive\Current PS stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:36 char:5 + $crumb = $webCookie.Substring($crumbStart+$crumbStr.Length,100); ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull
Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero. Parameter name: length" At C:\Users\IEUser\OneDrive\Current PS stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:38 char:5 + $crumb = $crumb.Substring(0, $crumbEnd); # ================ At ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentOutOfRangeException
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. At C:\Users\IEUser\OneDrive\Current PS stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:33 char:17 + ... $wrCookie = Invoke-WebRequest -Uri $urlCookie -SessionVariable webses ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotImplemented: (:) [Invoke-WebRequest], NotSupportedException + FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.I nvokeWebRequestCommand
You cannot call a method on a null-valued expression. At C:\Users\IEUser\OneDrive\Current PS stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:35 char:5 + $crumbStart = $webCookie.IndexOf($crumbStr); if ($crumbStart -eq ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression. At C:\Users\IEUser\OneDrive\Current PS stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:36 char:5 + $crumb = $webCookie.Substring($crumbStart+$crumbStr.Length,100); ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull
Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero. Parameter name: length" At C:\Users\IEUser\OneDrive\Current PS stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:38 char:5 + $crumb = $crumb.Substring(0, $crumbEnd); # ================ At ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentOutOfRangeException
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. At C:\Users\IEUser\OneDrive\Current PS stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:33 char:17 + ... $wrCookie = Invoke-WebRequest -Uri $urlCookie -SessionVariable webses ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotImplemented: (:) [Invoke-WebRequest], NotSupportedException + FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.I nvokeWebRequestCommand
You cannot call a method on a null-valued expression. At C:\Users\IEUser\OneDrive\Current PS stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:35 char:5 + $crumbStart = $webCookie.IndexOf($crumbStr); if ($crumbStart -eq ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression. At C:\Users\IEUser\OneDrive\Current PS stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:36 char:5 + $crumb = $webCookie.Substring($crumbStart+$crumbStr.Length,100); ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull
Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero. Parameter name: length" At C:\Users\IEUser\OneDrive\Current PS stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:38 char:5 + $crumb = $crumb.Substring(0, $crumbEnd); # ================ At ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentOutOfRangeException
12:33:48 IHC.L Last local quote: . No new data received. 12:33:49 RLM.L Last local quote: . No new data received. 12:33:49 SAL.L Last local quote: . No new data received. 12:33:49 NXT.L Last local quote: . No new data received. 12:33:50 RDSB.L Last local quote: . No new data received. 12:33:50 SPRP.L Last local quote: . No new data received. 12:33:50 ALD.L Last local quote: . No new data received. 12:33:51 ARW.L Last local quote: . No new data received. 12:33:51 BEZ.L Last local quote: . No new data received. 12:33:51 BOO.L Last local quote: . No new data received. 12:33:52 BLVN.L Last local quote: . No new data received. 12:33:52 CAMB.L Last local quote: . No new data received. 12:33:52 CRST.L Last local quote: . No new data received. 12:33:53 CVSG.L Last local quote: . No new data received.
The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete.
Could you please check if your Internet Explorer configuration was completed - that is start Internet Explorer and go through initial steps if asked. Then re-run script. Does that help?
Comments
thank for your earlier reply. I have done all you said, but am now getting error message when I run the Yahoo Quotes script that I've appended below. I've no idea what to do and would appreciate your thoughts.
Thanks,
Matthew.
=======================================================================================
12:33:29 --- Starting script GetQuotesYahoo.ps1. Symbol count: 64. MinDate: 2015-12-31
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.
At C:\Users\IEUser\OneDrive\Current PS
stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:33 char:17
+ ... $wrCookie = Invoke-WebRequest -Uri $urlCookie -SessionVariable webses ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotImplemented: (:) [Invoke-WebRequest], NotSupportedException
+ FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.I
nvokeWebRequestCommand
You cannot call a method on a null-valued expression.
At C:\Users\IEUser\OneDrive\Current PS
stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:35 char:5
+ $crumbStart = $webCookie.IndexOf($crumbStr); if ($crumbStart -eq ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\Users\IEUser\OneDrive\Current PS
stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:36 char:5
+ $crumb = $webCookie.Substring($crumbStart+$crumbStr.Length,100); ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero.
Parameter name: length"
At C:\Users\IEUser\OneDrive\Current PS
stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:38 char:5
+ $crumb = $crumb.Substring(0, $crumbEnd); # ================ At ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentOutOfRangeException
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.
At C:\Users\IEUser\OneDrive\Current PS
stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:33 char:17
+ ... $wrCookie = Invoke-WebRequest -Uri $urlCookie -SessionVariable webses ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotImplemented: (:) [Invoke-WebRequest], NotSupportedException
+ FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.I
nvokeWebRequestCommand
You cannot call a method on a null-valued expression.
At C:\Users\IEUser\OneDrive\Current PS
stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:35 char:5
+ $crumbStart = $webCookie.IndexOf($crumbStr); if ($crumbStart -eq ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\Users\IEUser\OneDrive\Current PS
stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:36 char:5
+ $crumb = $webCookie.Substring($crumbStart+$crumbStr.Length,100); ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero.
Parameter name: length"
At C:\Users\IEUser\OneDrive\Current PS
stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:38 char:5
+ $crumb = $crumb.Substring(0, $crumbEnd); # ================ At ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentOutOfRangeException
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.
At C:\Users\IEUser\OneDrive\Current PS
stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:33 char:17
+ ... $wrCookie = Invoke-WebRequest -Uri $urlCookie -SessionVariable webses ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotImplemented: (:) [Invoke-WebRequest], NotSupportedException
+ FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.I
nvokeWebRequestCommand
You cannot call a method on a null-valued expression.
At C:\Users\IEUser\OneDrive\Current PS
stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:35 char:5
+ $crumbStart = $webCookie.IndexOf($crumbStr); if ($crumbStart -eq ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\Users\IEUser\OneDrive\Current PS
stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:36 char:5
+ $crumb = $webCookie.Substring($crumbStart+$crumbStr.Length,100); ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero.
Parameter name: length"
At C:\Users\IEUser\OneDrive\Current PS
stuff\PortfolioSlicerDDMScriptsV2.3\Scripts\GetQuotesYahoo.ps1:38 char:5
+ $crumb = $crumb.Substring(0, $crumbEnd); # ================ At ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentOutOfRangeException
12:33:48 IHC.L Last local quote: . No new data received.
12:33:49 RLM.L Last local quote: . No new data received.
12:33:49 SAL.L Last local quote: . No new data received.
12:33:49 NXT.L Last local quote: . No new data received.
12:33:50 RDSB.L Last local quote: . No new data received.
12:33:50 SPRP.L Last local quote: . No new data received.
12:33:50 ALD.L Last local quote: . No new data received.
12:33:51 ARW.L Last local quote: . No new data received.
12:33:51 BEZ.L Last local quote: . No new data received.
12:33:51 BOO.L Last local quote: . No new data received.
12:33:52 BLVN.L Last local quote: . No new data received.
12:33:52 CAMB.L Last local quote: . No new data received.
12:33:52 CRST.L Last local quote: . No new data received.
12:33:53 CVSG.L Last local quote: . No new data received.
The response content cannot be parsed because the Internet Explorer engine is
not available, or Internet Explorer's first-launch configuration is not complete.
Could you please check if your Internet Explorer configuration was completed - that is start Internet Explorer and go through initial steps if asked. Then re-run script. Does that help?