Open crew05king opened 7 years ago
Does it make sense to add something like this to the Get-DriverPackages.ps1 script to handle Lenovo machines since they use a different naming convention for wmic csproduct get name?
If (((Get-CimInstance -ClassName win32_computersystemproduct -Namespace root\cimv2).Vendor) -eq "LENOVO") { $script:Model = (Get-CimInstance -ClassName win32_computersystemproduct -Namespace root\cimv2).Version } Else { $script:Model = (Get-CimInstance -ClassName win32_computersystemproduct -Namespace root\cimv2).Name }
Yes, it does. I'll check in with Matthew.
Does it make sense to add something like this to the Get-DriverPackages.ps1 script to handle Lenovo machines since they use a different naming convention for wmic csproduct get name?