Enable Exchange mailbox audit logging
Enable mailbox audit logging
Mailbox audit logging must be enabled for each mailbox that needs to run a non-owner mailbox access report. If mailbox audit logging is not enabled, you will not get any results when you run the report.
To enable mailbox audit logging for a single mailbox, run the following management shell command.
Set-Mailbox-AuditEnabled $true
For example, to enable mailbox auditing for a user named "Florence Flipo", run the following command.
Set-Mailbox "Florence Flipo"-AuditEnabled $true
To enable mailbox auditing for all user mailboxes in your organization, run the following command:
$UserMailboxes = Get-mailbox-Filter {(RecipientTypeDetails-eq 'UserMailbox')}
$UserMailboxes | ForEach {Set-Mailbox $_ .Identity-AuditEnabled $true}
How do you know this works?
Run the following command to check whether mailbox audit logging is successfully configured.
Get-Mailbox | FL Name,AuditEnabled
The value of the AuditEnabled property is True to verify that audit records are enabled.