From 1104bf2f23f452770afdfef47f5d206be845a7e4 Mon Sep 17 00:00:00 2001 From: w0 <33212583+w0@users.noreply.github.com> Date: Mon, 28 Aug 2023 19:38:27 -0500 Subject: [PATCH] corrected pkg name and console path (#4) * corrected package name and package path * bump version --- source/OpenDriverTool.psd1 | 2 +- source/public/Update-MicrosoftDriver.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/OpenDriverTool.psd1 b/source/OpenDriverTool.psd1 index e0b68e6..d302164 100644 --- a/source/OpenDriverTool.psd1 +++ b/source/OpenDriverTool.psd1 @@ -12,7 +12,7 @@ RootModule = 'OpenDriverTool.psm1' # Version number of this module. -ModuleVersion = '0.3.0' +ModuleVersion = '0.3.1' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/source/public/Update-MicrosoftDriver.ps1 b/source/public/Update-MicrosoftDriver.ps1 index 7a15750..c0da006 100644 --- a/source/public/Update-MicrosoftDriver.ps1 +++ b/source/public/Update-MicrosoftDriver.ps1 @@ -61,7 +61,7 @@ function Update-MicrosoftDriver { ' Found Driver: {0}' -f $Driver.FileName | Log $DriverPackage = @{ - Name = 'Drivers - {0} {1} - {2}' -f 'Microsoft', $Model, $OSVersion, $Driver.OSVersion + Name = 'Drivers - {0} {1} - {2}' -f 'Microsoft', $Model, $Driver.OSVersion Version = ($Driver.FileName -split '_' | Select-Object -last 1).trim('.msi') Manufacturer = 'Microsoft' Description = '(Models included:{0})' -f $Driver.Product @@ -96,7 +96,7 @@ function Update-MicrosoftDriver { ' Creating driver package in sccm.' - $CMPackage = New-Package -Package $DriverPackage -Type 'Driver' -SiteCode $SiteCode -ContentPath $DriverContent -Make 'Dell' + $CMPackage = New-Package -Package $DriverPackage -Type 'Driver' -SiteCode $SiteCode -ContentPath $DriverContent -Make 'Microsoft' switch ($PSBoundParameters.Keys) { 'DistributionPoints' { Start-ContentDistribution -CMPackage $CMPackage -SiteCode $SiteCode -DistributionPoints $DistributionPoints }