Enabling mailbox audit logging

You can enable mailbox audit logging to track logons to mailboxes and determine which actions are being taken against a mailbox. Audit log entries for a mailbox keep track of important details such as the username, client IP address, and hostname of the computer used by the person that made the change, and the actions made, such as accessing, moving, or deleting messages. In this recipe, we'll look at what needs to be done in order to enable and configure mailbox audit logging.

How to do it...

  1. To enable mailbox audit logging, use the Set-Mailbox cmdlet:
    Set-Mailbox -Identity dsmith -AuditEnabled $true
  2. By default, audit logs entries are retained per mailbox based on the AuditLogAgeLimit property which, by default, is ...

Get Microsoft Exchange 2010 PowerShell Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.