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

Resolved issues with Surface devices #26

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jmcwatty
Copy link

@jmcwatty jmcwatty commented Aug 28, 2020

I have resolved the issues with 4.0.2 and surface devices. I did have to disable fallback model detection to get it to work correctly.

  • Fixed an issue where a systemsku with : in it would break driver detection for that sku
  • Fixed issue where space in the SystemSKU would cause $DriverPackageInputArray in Confirm-SystemSKU to have an empty array
  • Fixed issue where falling back to Confirm-ComputerModel would cause the script to error out from to many matches. Disabled the Fallback

jmcwatty and others added 3 commits August 28, 2020 14:25
Fixed an issue where a systemsku with : in it would break driver detection for that sku
Fixed issue where space in the SystemSKU would cause $DriverPackageInputArray in Confirm-SystemSKU to have an empty array
Fixed issue where falling back to Confirm-ComputerModel would cause the script to error out from to many matches.  Disabled the Fallback
…ction for that sku

							Fixed issue where space in the SystemSKU would cause $DriverPackageInputArray in Confirm-SystemSKU to have an empty array
							Fixed issue where falling back to Confirm-ComputerModel would cause the script to error out from to many matches.  Disabled the Fallback
@jmcwatty
Copy link
Author

More information on Fixed issue where space in the SystemSKU would cause $DriverPackageInputArray in Confirm-SystemSKU to have an empty array.

$DriverPackageInputArray = $DriverPackageInput.Replace(" ", ",").Split($SystemSKUDelimiter) | Select-Object -Unique was changed in an earlier commit to resolve an issue with spaces in the SystemSKU, but this fix also causes an empty array item to be added to $DriverPackageInputArray like so:
image

if ($ComputerData.SystemSKU -match $SystemSKUItem) will match as true on an empty array and add in a driver that shouldn't have been added in which will end up causing the error:

  • WARNING: Computer detection method is currently 'SystemSKU', and multiple packages have been matched but with different SystemSKU value
  • WARNING: This should not be a possible scenario, please reach out to the developers of this script

Run the script without the above fix using the below command line:
-DebugMode -Endpoint your.ConfigMgr.com -UserName [email protected] -Password password -TargetOSVersion 1909 -Manufacturer Microsoft -ComputerModel 'Surface Laptop 3' -SystemSKU 'Surface_Laptop_3_1867:1868'"

Below from log:
[DriverPackage:DCO00114]: Match found between driver package and computer for 4/4 checks, adding to list for post-processing of matched driver packages ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
[DriverPackage:DCO00113]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Pro 7 - Windows 10 1909 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
[DriverPackage:DCO00117]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Laptop 3 - Intel 15 - Windows 10 1909 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
[DriverPackage:DCO00115]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Laptop 3 - Intel 13 - Windows 10 1909 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)

  • Matched SystemSKU: Surface_Laptop_3_1867:1868 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system name: Windows 10 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system architecture: x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system version: 1909 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00115]: Driver package was created on: 2020-08-04T14:25:22Z ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00115]: Match found between driver package and computer for 4/4 checks, adding to list for post-processing of matched driver packages ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00121]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Laptop 3 - Intel 15 - Windows 10 1809 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00120]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Laptop 3 - Intel 13 - Windows 10 1809 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched SystemSKU: Surface_Laptop_3_1867:1868 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system name: Windows 10 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system architecture: x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00120]: Skipping driver package since only 3/4 checks was matched ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00123]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Laptop 2 - Windows 10 1809 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched SystemSKU: Surface_Laptop_3_1867:1868 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system name: Windows 10 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system architecture: x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00123]: Skipping driver package since only 3/4 checks was matched ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00122]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Laptop 3 - AMD 13 - Windows 10 1809 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO0011D]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Pro 6 - Windows 10 1809 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched SystemSKU: Surface_Laptop_3_1867:1868 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system name: Windows 10 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system architecture: x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO0011D]: Skipping driver package since only 3/4 checks was matched ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO0011C]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Pro 5 - Windows 10 1809 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched SystemSKU: Surface_Laptop_3_1867:1868 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system name: Windows 10 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system architecture: x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO0011C]: Skipping driver package since only 3/4 checks was matched ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO0011F]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Laptop - Windows 10 1809 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched SystemSKU: Surface_Laptop_3_1867:1868 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system name: Windows 10 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system architecture: x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO0011F]: Skipping driver package since only 3/4 checks was matched ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO0011E]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Pro 7 - Windows 10 1809 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00112]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Pro 6 - Windows 10 1909 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched SystemSKU: Surface_Laptop_3_1867:1868 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system name: Windows 10 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system architecture: x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system version: 1909 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00112]: Driver package was created on: 2020-08-04T13:55:40Z ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00112]: Match found between driver package and computer for 4/4 checks, adding to list for post-processing of matched driver packages ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00111]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Pro 5 - Windows 10 1909 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched SystemSKU: Surface_Laptop_3_1867:1868 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system name: Windows 10 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system architecture: x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Matched operating system version: 1909 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00111]: Driver package was created on: 2020-08-04T13:46:17Z ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00111]: Match found between driver package and computer for 4/4 checks, adding to list for post-processing of matched driver packages ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage:DCO00110]: Processing driver package with 4 detection methods: Drivers - Microsoft Surface Pro 4 - Windows 10 1909 x64 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackage]: Completed driver package matching phase ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [DriverPackageValidation]: Starting driver package validation phase ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • Amount of driver packages detected by validation process: 5 ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • WARNING: Computer detection method is currently 'SystemSKU', and multiple packages have been matched but with different SystemSKU value ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
  • WARNING: This should not be a possible scenario, please reach out to the developers of this script ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)
    [ApplyDriverPackage]: Apply Driver Package process failed, please refer to previous error or warning messages ApplyDriverPackage 8/31/2020 9:07:06 AM 5612 (0x15EC)

@andrewbaker-uk
Copy link

Guessing this is related to what I'm seeing in #31, where drivers for Surface devices are being download from Dell.

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

Successfully merging this pull request may close these issues.

2 participants