We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d30b2f4 commit 0b72ea5Copy full SHA for 0b72ea5
1 file changed
Modules/CIPPCore/Public/Compare-CIPPIntuneObject.ps1
@@ -173,11 +173,12 @@ function Compare-CIPPIntuneObject {
173
if (ShouldCompareAsUnorderedSet -PropertyPath $PropertyPath) {
174
# For unordered sets, compare contents regardless of order
175
if ($Object1.Count -ne $Object2.Count) {
176
- # Different lengths - report the difference
+ # Different lengths - report the actual values so a technician
177
+ # can see exactly what differs and decide on the action.
178
$result.Add([PSCustomObject]@{
179
Property = $PropertyPath
- ExpectedValue = "Array with $($Object1.Count) items"
180
- ReceivedValue = "Array with $($Object2.Count) items"
+ ExpectedValue = ($Object1 -join ', ')
181
+ ReceivedValue = ($Object2 -join ', ')
182
})
183
} else {
184
# Same length - check if all items exist in both arrays
0 commit comments