MSEndpointMgr / ConfigMgr

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

Detection Method for Surface Book 2 Not matching #332

Closed itmmdj closed 3 years ago

itmmdj commented 3 years ago

Here is the ApplyDriverPackage.log

` [ApplyDriverPackage]: Apply Driver Package process initiated ApplyDriverPackage 8/23/2021 8:26:36 AM 1796 (0x0704)

Ar5had07 commented 3 years ago

I posted the solution here

https://github.com/MSEndpointMgr/ModernDriverManagement/issues/33#issuecomment-765365849

itmmdj commented 3 years ago

Thank you. I am using a Surface Book 2, but your example got me looking deeper into the scirpt and how it looks up the package.

In my original comment on my package was "(Models included:Surface_Book_2_1832)" but it should actually be "(Models included:Surface_Book_1832)" which is in the ApplyDriverPackage.log. Running the script in debug helped to see this. I will say it is nice that being able to change the comments (which in the script is called $DriverPackageItem.Description) can help the script find the package.