fix: 2.1.5 simplified output and added object comment

This commit is contained in:
DrIOS
2024-06-28 21:19:03 -05:00
parent 37b6557221
commit 2466692e35
2 changed files with 42 additions and 10 deletions

View File

@@ -288,6 +288,17 @@ function Get-CISExoOutput {
# Retrieve the ATP policies for Office 365 and check Safe Attachments settings
$atpPolicies = Get-AtpPolicyForO365
# Check if the required ATP policies are enabled
# $atpPolicyResult Mock Object:
<#
$atpPolicyResult = @(
[PSCustomObject]@{
Name = "Default"
EnableATPForSPOTeamsODB = $true
EnableSafeDocs = $true
AllowSafeDocsOpen = $false
}
)
#>
$atpPolicyResult = $atpPolicies | Where-Object {
$_.EnableATPForSPOTeamsODB -eq $true -and
$_.EnableSafeDocs -eq $true -and