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

Invoke-CMApplyDriverPackage - picking incorrect driver when multiple version matches #176

Open
Cyber-Unicorn-42 opened this issue Aug 12, 2019 · 3 comments

Comments

@Cyber-Unicorn-42
Copy link

Cyber-Unicorn-42 commented Aug 12, 2019

Hi,

Driver matching seems to pick the latest drivers added rather than the drivers with the highest version number when there are multiple matches.
I initially added Surface drivers for 1903 for testing purposes and then added 1803 drivers once initial testing was complete. And now even devices with 1903 are getting the drivers for 1803 installed. See below log where it matches fully with Windows 10 1903 and then later partially with Windows 10 1803. But it then picks 1803 because that package was added after the 1903 package.

EDIT: This is from a driver upgrade within the OS using the "-DeploymentType DriverUpdate" switch.

<![LOG[===== SCConfigMgr Invoke-CMApplyDriverPackage Version 2.2.3 ====]LOG]!><time="09:18:06.602-600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Driver download package process initiated]LOG]!><time="09:18:06.628600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Manufacturer determined as: Microsoft]LOG]!><time="09:18:06.735600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Computer model determined as: Surface Pro 6]LOG]!><time="09:18:06.738600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Unable to determine system SKU value]LOG]!><time="09:18:06.745600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="2" thread="13260" file="">
<![LOG[Retrieved a total of 9 driver packages from web service]LOG]!><time="09:18:09.692600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Translated OSName from OSImageVersion: Windows 10]LOG]!><time="09:18:09.947600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Translated OSVersion from OSImageVersion: 1903]LOG]!><time="09:18:09.951600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Translated OSImageArchitecture: x64]LOG]!><time="09:18:09.980600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Using computer detection method: ComputerModel]LOG]!><time="09:18:10.012600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Attempting to find a match for driver package: Drivers - Microsoft Surface Pro 4 - Windows 10 1903 x64 (NSW0005C)]LOG]!><time="09:18:10.027600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Driver package does not meet computer model criteria: Drivers - Microsoft Surface Pro 4 - Windows 10 1903 x64 (NSW0005C)]LOG]!><time="09:18:10.077600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="2" thread="13260" file="">
<![LOG[Attempting to find a match for driver package: Drivers - Microsoft Surface Pro 5 - Windows 10 1903 x64 (NSW0005D)]LOG]!><time="09:18:10.081600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Driver package does not meet computer model criteria: Drivers - Microsoft Surface Pro 5 - Windows 10 1903 x64 (NSW0005D)]LOG]!><time="09:18:10.085600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="2" thread="13260" file="">
<![LOG[Attempting to find a match for driver package: Drivers - Microsoft Surface Pro 6 - Windows 10 1903 x64 (NSW0005E)]LOG]!><time="09:18:10.088600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Match found for computer model using detection method: ComputerModel (Surface Pro 6)]LOG]!><time="09:18:10.090600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Attempting to match driver package name with OS name 'Windows 10' and version 1903 for Microsoft]LOG]!><time="09:18:10.094600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Match found for manufacturer, operating system and architecture: Drivers - Microsoft Surface Pro 6 - Windows 10 1903 x64 (NSW0005E)]LOG]!><time="09:18:10.110600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Adding driver package to list of packages to process]LOG]!><time="09:18:10.113600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Attempting to find a match for driver package: Drivers - Microsoft Surface Pro 4 - Windows 10 1803 x64 (NSW0005F)]LOG]!><time="09:18:10.121600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Driver package does not meet computer model criteria: Drivers - Microsoft Surface Pro 4 - Windows 10 1803 x64 (NSW0005F)]LOG]!><time="09:18:10.126600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="2" thread="13260" file="">
<![LOG[Attempting to find a match for driver package: Drivers - Microsoft Surface Pro 5 - Windows 10 1803 x64 (NSW00060)]LOG]!><time="09:18:10.129600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Driver package does not meet computer model criteria: Drivers - Microsoft Surface Pro 5 - Windows 10 1803 x64 (NSW00060)]LOG]!><time="09:18:10.131600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="2" thread="13260" file="">
<![LOG[Attempting to find a match for driver package: Drivers - Microsoft Surface Pro 6 - Windows 10 1803 x64 (NSW00061)]LOG]!><time="09:18:10.134600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Match found for computer model using detection method: ComputerModel (Surface Pro 6)]LOG]!><time="09:18:10.138600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Unable to match driver package name with OS version '1903', falling back to match found for 'Windows 10']LOG]!><time="09:18:10.141600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Match found for manufacturer, operating system and architecture: Drivers - Microsoft Surface Pro 6 - Windows 10 1803 x64 (NSW00061)]LOG]!><time="09:18:10.146600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Adding driver package to list of packages to process]LOG]!><time="09:18:10.150600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Driver package list contains multiple matches, attempting to download driver package content based upon latest package creation date]LOG]!><time="09:18:10.161600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">
<![LOG[Attempting to download driver package NSW00061 content from Distribution Point]LOG]!><time="09:18:10.184600" date="08-13-2019" component="ApplyDriverPackage" context="NT AUTHORITY\SYSTEM" type="1" thread="13260" file="">

@king-matthew-g
Copy link

king-matthew-g commented Feb 11, 2020

Proposed fix that has been tested and confirmed working. May want to change default from freshest to highest build number but would require additional logic in case no build specific driver packs were found.

image

@nclinch
Copy link

nclinch commented May 20, 2020

I would suggest adding another switch to the script where you can specify OS version. That way you can be sure you get the right version to match the OS version you are installing

@NickolajA
Copy link
Member

It's being redone in the upcoming version that's out very soon.

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

4 participants