fix: Safe Attachments logic

This commit is contained in:
DrIOS
2024-07-07 16:18:43 -05:00
parent fe04175798
commit 228c58cef3
2 changed files with 42 additions and 26 deletions

View File

@@ -220,10 +220,11 @@ function Get-CISExoOutput {
)
#>
$safeAttachmentPolicies = Get-SafeAttachmentPolicy -ErrorAction SilentlyContinue | Where-Object { $_.Enable -eq $true }
$safeAttachmentRules = Get-SafeAttachmentRule
# [object[]]
return $safeAttachmentPolicies
return $safeAttachmentPolicies, $safeAttachmentRules
else {
return 1
return 1,1
}
}
}