diff --git a/Get-PC/Private/SCCMQueryBlock.ps1 b/Get-PC/Private/SCCMQueryBlock.ps1 index 7fe7fbb..be3f1da 100644 --- a/Get-PC/Private/SCCMQueryBlock.ps1 +++ b/Get-PC/Private/SCCMQueryBlock.ps1 @@ -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 diff --git a/Get-PC/patchnotes.txt b/Get-PC/patchnotes.txt index 1fa1316..21a0217 100644 --- a/Get-PC/patchnotes.txt +++ b/Get-PC/patchnotes.txt @@ -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