O'Reilly logo

Microsoft Exchange 2010 PowerShell Cookbook by Mike Pfeiffer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generating mailbox audit log reports

After you've enabled mailbox audit logging, there are two ways from within the Exchange Management shell that you can search the logs and generate reports. In this recipe, you'll learn how to use both synchronous and asynchronous mailbox audit log searches from the Exchange Management Shell.

How to do it...

  1. To perform a synchronous mailbox audit log search, use the Search-MailboxAuditLog cmdlet. After executing the following command, the results will be displayed in the shell:
    Search-MailboxAuditLog -Identity dsmith -ShowDetails
  2. To perform an asynchronous search, use the New-MailboxAuditLogSearch cmdlet:
    
    New-MailboxAuditLogSearch -Name Search1 ` -Mailboxes dsmith,bjones ` -LogonTypes admin,delegate ` -StartDate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required