add: error handling for tests that produce large output

This commit is contained in:
DrIOS
2024-06-16 12:23:39 -05:00
parent 9b624680fd
commit 04e63f72fc
6 changed files with 92 additions and 23 deletions

View File

@@ -103,7 +103,7 @@ function Test-MailboxAuditingE5 {
else {
"UserPrincipalName|AuditEnabled|AdminActionsMissing|DelegateActionsMissing|OwnerActionsMissing`n" + ($allFailures -join "`n") # Condition A for fail
}
# $details = Initialize-LargeTestTable -lineCount 3000 # Adjust the lineCount to exceed 32,000 characters
$details = Initialize-LargeTestTable -lineCount 3000 # Adjust the lineCount to exceed 32,000 characters
# Populate the audit result
$params = @{
Rec = $recnum