fix: Write-Information if not auiditresult.

This commit is contained in:
DrIOS
2024-06-16 10:09:26 -05:00
parent 06cdb4d0d1
commit 54a369bde3

View File

@@ -96,7 +96,7 @@ function Export-M365SecurityAuditTable {
foreach ($test in $testsToProcess) {
$auditResult = $AuditResults | Where-Object { $_.Rec -eq $test }
if (-not $auditResult) {
Write-Error "No audit results found for the test number $test."
Write-Information "No audit results found for the test number $test."
continue
}