Get the App
SLTechnology News&Howtos  ›  Servers  › 

Enable Exchange mailbox audit logging

Shulou Source: shulou.com Published: 2022-06-03 05:13:43 10月04日 Update

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.

Tags: Mailbox run log command report user valid successful single attribute owner program result audit check manage configure verify Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Huawei Docker OPPO Reno NVidia