fix: 2.1.5 simplified output and added object comment

This commit is contained in:
DrIOS
2024-06-28 21:42:48 -05:00
parent 2466692e35
commit 3ecc8f4466

View File

@@ -49,7 +49,7 @@ function Test-SafeAttachmentsTeams {
# Condition C: Check Safe Attachments for Microsoft Teams # Condition C: Check Safe Attachments for Microsoft Teams
# Determine the result based on the ATP policy settings # Determine the result based on the ATP policy settings
$result = $null -ne $atpPolicyResult $result = $null -ne $atpPolicyResult
$atpPolicyResult | Where-Object { $_.Identity -eq "Default" } #$atpPolicyResult | Where-Object { $_.Identity -eq "Default" }
if ($result) { if ($result) {
$detailpass = [PSCustomObject]@{ $detailpass = [PSCustomObject]@{
Name = $atpPolicyResult.Name Name = $atpPolicyResult.Name