SCCM Query block didn't report mac address if there was only one. Fixed.
This commit is contained in:
parent
b295f4bef4
commit
a16bdb6b40
|
|
@ -72,7 +72,7 @@ $Headers = @{
|
||||||
$FindMacAddressSCCM = $SCCMResults | Select-Object -ExpandProperty MACAddresses
|
$FindMacAddressSCCM = $SCCMResults | Select-Object -ExpandProperty MACAddresses
|
||||||
$FindMacAddressSCCM = if($FindMacAddressSCCM.Count -gt 1){
|
$FindMacAddressSCCM = if($FindMacAddressSCCM.Count -gt 1){
|
||||||
$FindMacAddressSCCM[0]
|
$FindMacAddressSCCM[0]
|
||||||
}
|
} else { $FindMacAddressSCCM }
|
||||||
|
|
||||||
$progress += 10
|
$progress += 10
|
||||||
Write-Progress -Activity "Getting SCCM data for $comp" -Status 'Querying for Model' -PercentComplete $progress -ParentID 0 -Id $PCID
|
Write-Progress -Activity "Getting SCCM data for $comp" -Status 'Querying for Model' -PercentComplete $progress -ParentID 0 -Id $PCID
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
Patch
|
Patch
|
||||||
-Update Custom SHSApps have more robust detection
|
-Update Custom SHSApps have more robust detection
|
||||||
|
-Fix SCCM queries return mac address correctly
|
||||||
|
|
||||||
Patch 2025-4-29
|
Patch 2025-4-29
|
||||||
-Fix DEL messages from SCCM queries now use the correct hostname
|
-Fix DEL messages from SCCM queries now use the correct hostname
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue