fix: improve output of 6.1.2
This commit is contained in:
@@ -46,16 +46,16 @@ function Test-MailboxAuditingE3 {
|
||||
foreach ($action in $OwnerActions) {
|
||||
if ($mailbox.AuditOwner -notcontains $action) { $missingActions += "Owner action '$action' missing" }
|
||||
}
|
||||
}
|
||||
else {
|
||||
$allFailures += "$userUPN|False|||"
|
||||
continue
|
||||
}
|
||||
|
||||
if ($missingActions) {
|
||||
if ($missingActions.Count -gt 0) {
|
||||
$formattedActions = Format-MissingActions -missingActions $missingActions
|
||||
$allFailures += "$userUPN|True|$($formattedActions.Admin)|$($formattedActions.Delegate)|$($formattedActions.Owner)"
|
||||
}
|
||||
}
|
||||
else {
|
||||
$allFailures += "$userUPN|False|||"
|
||||
}
|
||||
|
||||
# Mark the user as processed
|
||||
$processedUsers[$user.UserPrincipalName] = $true
|
||||
}
|
||||
|
Reference in New Issue
Block a user