Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run-DriverAutomationToolSvc tries to extract Make (Manufacturer) from Model #3

Open
Staja opened this issue Mar 19, 2020 · 1 comment

Comments

@Staja
Copy link

Staja commented Mar 19, 2020

When utilisings a DATSetting.xml created by the GUI tool that contains the following models:

<Manufacturer<
<Dell<True</Dell<
<HP>False</HP<
<Lenovo>False</Lenovo>
<Microsoft>False</Microsoft>
</Manufacturer>
<Models>
<ModelSelected>Precision Tower 3620</ModelSelected>
<ModelSelected>Latitude 7400</ModelSelected>
<ModelSelected>Latitude 7490</ModelSelected>
<ModelSelected>Optiplex 7070</ModelSelected>
<ModelSelected>Optiplex 7050</ModelSelected>
</Models>

It produces an exception:

You cannot call a method on a null-valued expression.
At C:\Program Files\SCConfigMgr\Driver Automation Tool\Run-DriverAutomationToolSvc.ps1:1174 char:5
+ ... $DriverPackageDir = ($DriverCab).Substring(0, $DriverCab. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvokeMethodOnNull

I believe this is because it tries to extract $Make (Line 1025) from $Model (Line 1021) which yields something like "Precision" instead of "Dell" meaning conditional code at line 1052, which sets $DriverCab, doesn't execute because it was expecting "Dell" as $Make.

@Staja
Copy link
Author

Staja commented Mar 19, 2020

Refer to #2 and vote on it instead/as-well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant