Skip to content

Commit d1d0d5c

Browse files
fixes compares of specific intune objects
1 parent ac5acaa commit d1d0d5c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Modules/CIPPCore/Public/Compare-CIPPIntuneObject.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ function Compare-CIPPIntuneObject {
257257
}
258258
}
259259
}
260-
Default {
260+
default {
261261
if ($settingInstance.simpleSettingValue?.value) {
262262
$label = if ($intuneObj?.displayName) {
263263
$intuneObj.displayName
@@ -337,6 +337,9 @@ function Compare-CIPPIntuneObject {
337337
} else {
338338
$child.choiceSettingValue.value
339339
}
340+
if (!$childValue -and $child.simpleSettingValue.value) {
341+
$childValue = $child.simpleSettingValue.value
342+
}
340343
}
341344

342345
# Add object to our temporary list
@@ -351,7 +354,7 @@ function Compare-CIPPIntuneObject {
351354
}
352355
}
353356
}
354-
Default {
357+
default {
355358
if ($settingInstance.simpleSettingValue?.value) {
356359
$label = if ($intuneObj?.displayName) {
357360
$intuneObj.displayName

0 commit comments

Comments
 (0)