SCCM Query block didn't report mac address if there was only one. Fixed.

This commit is contained in:
Zachary Gorman 2025-05-05 11:29:01 -07:00
parent b295f4bef4
commit a16bdb6b40
2 changed files with 2 additions and 1 deletions

View file

@ -72,7 +72,7 @@ $Headers = @{
$FindMacAddressSCCM = $SCCMResults | Select-Object -ExpandProperty MACAddresses
$FindMacAddressSCCM = if($FindMacAddressSCCM.Count -gt 1){
$FindMacAddressSCCM[0]
}
} else { $FindMacAddressSCCM }
$progress += 10
Write-Progress -Activity "Getting SCCM data for $comp" -Status 'Querying for Model' -PercentComplete $progress -ParentID 0 -Id $PCID

View file

@ -1,5 +1,6 @@
Patch
-Update Custom SHSApps have more robust detection
-Fix SCCM queries return mac address correctly
Patch 2025-4-29
-Fix DEL messages from SCCM queries now use the correct hostname