Skip to content

Commit 3fbb502

Browse files
authored
Merge branch 'KelvinTegelaar:dev' into dev
2 parents a6fef0d + 81ba005 commit 3fbb502

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Modules/CIPPCore/Public/Entrypoints/Invoke-AddStandardsDeploy.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ Function Invoke-AddStandardsDeploy {
2626
URL = $URL
2727
}
2828
}
29+
#Get all subobjects in $Settings that are set to false, and remove them.
30+
$Settings.psobject.properties.name | Where-Object { $Settings.$_ -eq $false -and $_ -ne 'v2.1' -and $_ -in 'Alert', 'Remediate', 'Report' } | ForEach-Object {
31+
$Settings.psobject.properties.remove($_)
32+
}
33+
34+
2935
foreach ($Tenant in $tenants) {
3036

3137
$object = [PSCustomObject]@{

0 commit comments

Comments
 (0)