MSEndpointMgr / ConfigMgr

Microsoft Endpoint Configuration Manager scripts and tools
628 stars 282 forks source link

Possible error with -UseDriverFallback ? #288

Open TacII opened 3 years ago

TacII commented 3 years ago

We wanted to use the Driver Fallback function but it appears that all models with matching packages fail when we use the parameter "-UseDriverFallback". I'm attaching the logfile where we have retried the installation a few times (and it failed, see snip below) until we removed the driver fallback parameter (at 14:43) and then Invoke-CMApplyDriverPackage (v4.0.7) properly installs the driver package. We do have the fallback package as well, generated by the Driver Automation Toolkit (and content in the package added by us of course, everything distributed to our DPs)

We invoke the script with the parameters: -DriverUpdate -Endpoint "servername.customer.net" -OperationalMode "Production" -UseDriverFallback

In the source code there's a line that says:

"This function will only run in the case that the parameter UseDriverFallback was specified and if the $DriverPackageList is empty at the point of execution".

I'm not sure that there is a check for if the $DriverPackageList really is empty?

ApplyDriverPackage.log looks like this for our Lenovo M920Q (10RS):

[DriverPackage:XYZ00301]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkPad T480S Type 20L7 20L8 - Windows 10 1909 x64 [DriverPackage:XYZ002FF]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkCentre M920Q - Windows 10 1909 x64

[DriverPackage:XYZ00312]: Match found between driver package and computer for 4/4 checks, adding to list for post-processing of matched driver packages [DriverPackage:XYZ00311]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkPad P53 Type 20QN 20QQ - Windows 10 1909 x64 [DriverPackage:XYZ00301]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkPad T480S Type 20L7 20L8 - Windows 10 1909 x64 [DriverPackage:XYZ002E7]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkPad P53S Type 20N6 20N7 - Windows 10 2004 x64
[DriverPackage:XYZ002F5]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkPad T470S Type 20JS 20JT - Windows 10 1909 x64 [DriverPackage:XYZ002EA]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkPad T470S - Windows 10 2004 x64 [DriverPackage]: Completed driver package matching phase [DriverPackageValidation]: Starting driver package validation phase Amount of driver packages detected by validation process: 1 Successfully completed validation with a single driver package, script execution is allowed to continue
[DriverPackageValidation]: Completed driver package validation phase [DriverPackageFallback]: Starting fallback driver package detection phase [ApplyDriverPackage]: Apply Driver Package process failed, please refer to previous error or warning messages

Best regards, Mathias

vonpelz commented 3 years ago

+1 We've encountered the same issue with same results in the log.