From a42cb7d9b63b757e0cd78e077e24caf1788a2a18 Mon Sep 17 00:00:00 2001 From: haferka <79726430+haferka@users.noreply.github.com> Date: Fri, 26 Feb 2021 16:13:27 -0600 Subject: [PATCH] Update Invoke-CMApplyDriverPackage.ps1 Added Support for "Intel" devices (such as the NUC) which is used for Many Kiosk devices. --- Invoke-CMApplyDriverPackage.ps1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Invoke-CMApplyDriverPackage.ps1 b/Invoke-CMApplyDriverPackage.ps1 index e8cc2f8..437f110 100644 --- a/Invoke-CMApplyDriverPackage.ps1 +++ b/Invoke-CMApplyDriverPackage.ps1 @@ -295,7 +295,7 @@ param( [parameter(Mandatory = $false, ParameterSetName = "Debug", HelpMessage = "Override the automatically detected computer manufacturer when running in debug mode.")] [ValidateNotNullOrEmpty()] - [ValidateSet("HP", "Hewlett-Packard", "Dell", "Lenovo", "Microsoft", "Fujitsu", "Panasonic", "Viglen", "AZW")] + [ValidateSet("HP", "Hewlett-Packard", "Dell", "Intel", "Lenovo", "Microsoft", "Fujitsu", "Panasonic", "Viglen", "AZW")] [string]$Manufacturer, [parameter(Mandatory = $false, ParameterSetName = "Debug", HelpMessage = "Override the automatically detected computer model when running in debug mode.")] @@ -1144,6 +1144,11 @@ Process { $ComputerDetails.Model = (Get-WmiObject -Class "Win32_ComputerSystem" | Select-Object -ExpandProperty Model).Trim() $ComputerDetails.SystemSKU = (Get-CIMInstance -ClassName "MS_SystemInformation" -NameSpace root\WMI).BaseBoardProduct.Trim() } + "*Intel*" { + $ComputerDetails.Manufacturer = "Intel" + $ComputerDetails.Model = (Get-WmiObject -Class "Win32_ComputerSystem" | Select-Object -ExpandProperty Model).Trim() + $ComputerDetails.SystemSKU = (Get-WmiObject -Class "Win32_BaseBoard" | Select-Object -ExpandProperty SKU).Trim() + } "*Fujitsu*" { $ComputerDetails.Manufacturer = "Fujitsu" $ComputerDetails.Model = (Get-WmiObject -Class "Win32_ComputerSystem" | Select-Object -ExpandProperty Model).Trim() @@ -2274,4 +2279,4 @@ End { # Write final output to log file Write-CMLogEntry -Value "[ApplyDriverPackage]: Completed Apply Driver Package process" -Severity 1 -} \ No newline at end of file +}