Skip to content

Commit 90884e8

Browse files
authored
Merge pull request #214 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents cc1d55c + 7ca41ce commit 90884e8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-ListStandardsCompare.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ Function Invoke-ListStandardsCompare {
2525
} else {
2626
$_.Value = [string]$_.Value
2727
}
28-
$object | Add-Member -MemberType NoteProperty -Name $_.Name.Replace('standards_', 'standards.') -Value $_.Value -Force
28+
29+
$Key = $_.Name.replace('standards_', 'standards.')
30+
$Key = $Key.replace('IntuneTemplate_', 'IntuneTemplate.')
31+
$Key = $Key -replace '__', '-'
32+
33+
$object | Add-Member -MemberType NoteProperty -Name $Key -Value $_.Value -Force
2934
$object.PSObject.Properties.Remove($_.Name)
3035
}
31-
3236
}
3337
}
3438

0 commit comments

Comments
 (0)