MSEndpointMgr / ConfigMgr

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

Invoke-CMApplyDriverPackage - Surface Pro 5 not detected #177

Closed PeterDodemont closed 4 years ago

PeterDodemont commented 5 years ago

Hi,

Surface Pro 5 is not detected properly when doing a driver update from within the OS (using the "-DeploymentType DriverUpdate" switch). This seems to be because you are checking the model property of Win32_ComputerSystem and that just returns Surface Pro. I believe the SystemSKU property returns unique values for each model.

<![LOG[===== SCConfigMgr Invoke-CMApplyDriverPackage Version 2.2.3 ====]LOG]!> <![LOG[Driver download package process initiated]LOG]!> <![LOG[Manufacturer determined as: Microsoft]LOG]!> <![LOG[Computer model determined as: Surface Pro]LOG]!> <![LOG[Unable to determine system SKU value]LOG]!> <![LOG[Retrieved a total of 9 driver packages from web service]LOG]!> <![LOG[Translated OSName from OSImageVersion: Windows 10]LOG]!> <![LOG[Translated OSVersion from OSImageVersion: ]LOG]!> <![LOG[Translated OSImageArchitecture: x64]LOG]!> <![LOG[Using computer detection method: ComputerModel]LOG]!> <![LOG[Attempting to find a match for driver package: Drivers - Microsoft Surface Pro 4 - Windows 10 1903 x64 (NSW0005C)]LOG]!> <![LOG[Driver package does not meet computer model criteria: Drivers - Microsoft Surface Pro 4 - Windows 10 1903 x64 (NSW0005C)]LOG]!> <![LOG[Attempting to find a match for driver package: Drivers - Microsoft Surface Pro 5 - Windows 10 1903 x64 (NSW0005D)]LOG]!> <![LOG[Driver package does not meet computer model criteria: Drivers - Microsoft Surface Pro 5 - Windows 10 1903 x64 (NSW0005D)]LOG]!> <![LOG[Attempting to find a match for driver package: Drivers - Microsoft Surface Pro 6 - Windows 10 1903 x64 (NSW0005E)]LOG]!> <![LOG[Driver package does not meet computer model criteria: Drivers - Microsoft Surface Pro 6 - Windows 10 1903 x64 (NSW0005E)]LOG]!> <![LOG[Attempting to find a match for driver package: Drivers - Microsoft Surface Pro 4 - Windows 10 1803 x64 (NSW0005F)]LOG]!> <![LOG[Driver package does not meet computer model criteria: Drivers - Microsoft Surface Pro 4 - Windows 10 1803 x64 (NSW0005F)]LOG]!> <![LOG[Attempting to find a match for driver package: Drivers - Microsoft Surface Pro 5 - Windows 10 1803 x64 (NSW00060)]LOG]!> <![LOG[Driver package does not meet computer model criteria: Drivers - Microsoft Surface Pro 5 - Windows 10 1803 x64 (NSW00060)]LOG]!> <![LOG[Attempting to find a match for driver package: Drivers - Microsoft Surface Pro 6 - Windows 10 1803 x64 (NSW00061)]LOG]!> <![LOG[Driver package does not meet computer model criteria: Drivers - Microsoft Surface Pro 6 - Windows 10 1803 x64 (NSW00061)]LOG]!> <![LOG[Computer model detection logic failed for all detected driver packages]LOG]!>

PeterDodemont commented 5 years ago

As a work around I removed the 5 in the name of the driver packages in SCCM. So the packages have been renamed from "Drivers - Microsoft Surface Pro 5 - Windows 10 1803 x64" to "Drivers - Microsoft Surface Pro - Windows 10 1803 x64". This seems to have worked as the Surface Pro 5's are now picking up the correct driver package.