Driver Automation Tool - Automate Driver Downloads & Packaging for SCCM/MDT
Written November 06, 2018
I'm getting the same error when trying to download Lenovo drivers, and with the Lenovo Automation Tool, on Windows 2016, MDT 6.3.8450, ADK 10.1.16299.
Error seen from Lenovo tool:
You cannot call a method on a null-valued expression.
At E:\Source\Lenovo\LenovoAutoDownload.ps1:1927 char:5
+ ... $farthestEXE = $tags.text.lastIndexOf(".exe`"", $currentI ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At E:\Source\Lenovo\LenovoAutoDownload.ps1:1933 char:6
+ ... $farthestURL = ($tags.text.lastIndexOf("`"URL`"", $farthe ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At E:\Source\Lenovo\LenovoAutoDownload.ps1:1935 char:6
+ ... $anchors += ($tags.text.Substring($farthestURL + 7, $fart ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
-
-