Open archa3us opened 1 year ago
I have the same issue. Is there any solution?
Same for me...I don't know if it ever worked (just took over SCCM) but we are moving to 22H2 and I'm starting to think I'm going to have to get a list of models from SCCM and manually find them all.
` $SiteServer = "YourSiteServer.fqdn" $SiteCode = "YourSiteCode"
$HPKnownModels = (Get-WmiObject -ComputerName $SiteServer -Namespace "root\SMS\site_$SiteCode" -Query "Select Distinct Manufacturer, Model from SMS_G_System_COMPUTERSYSTEM Where (Manufacturer = 'Hewlett-Packard' or Manufacturer = 'HP') and Model not like '%Proliant%'" | Select-Object -ExpandProperty Model) | Sort-Object | Get-Unique -AsString $HPKnownBaseBoardValues = (Get-WmiObject -ComputerName $SiteServer -Namespace "root\SMS\site$SiteCode" -Query "Select Distinct Product from SMS_G_SystemBASEBOARD Where (Manufacturer = 'Hewlett-Packard' or Manufacturer = 'HP') and Product not like '%Proliant%'" | Select-Object -ExpandProperty Product) | Sort-Object | Get-Unique -AsString if ($HPKnownBaseBoardValues.Count -lt 1) { $HPKnownBaseBoardValues = (Get-WmiObject -ComputerName $SiteServer -Namespace "root\SMS\site$SiteCode" -Query "Select Distinct BaseBoardProduct from SMS_G_System_MS_SYSTEMINFORMATION Where (BaseBoardManufacturer = 'Hewlett-Packard' or BaseBoardManufacturer = 'HP') and SystemProductName not like '%Proliant%'" -ErrorAction SilentlyContinue | Select-Object -ExpandProperty BaseBoardProduct) | Sort-Object | Get-Unique -AsString }`
What happens if you guys run the code above? This code is from the "DriverAutomationTool.ps1" line 13953 -> 13959
Edit: We were not collecting Baseboard values in our hardware inventory for SCCM...user error
When I ran those lines I didn’t get an error but also saw no output. I added a write output for the knownmodels and baseboardvalues variables and it seemed to get all the known models; the baseboards output file was empty.
The tool automatically selects the known models for every other brand except HP. Can't seem to figure out why. Running version 7.1.9