Searching the administrator audit logs
You can use the Exchange Management Shell to search the administrator audit logs and generate reports based on the cmdlets and parameters used to modify objects within your Exchange environment. Like mailbox audit log reports, we have two ways in which we can view the audit logs from the Exchange Management Shell, and in this recipe we'll take a look at both the methods.
How to do it...
To perform a synchronous administrator audit log search in the shell, we can use the
Search-AdminAuditLog
cmdlet. For example, after executing the following command, the results will be displayed in the shell:Search-AdminAuditLog -Cmdlets Set-Mailbox ` -StartDate 1/1/2013 ` -EndDate 1/31/2013 ` -IsSuccess $true
This command would return all of the log entries for the
Set-Mailbox
cmdlet for the month of January. Only the log entries from successful commands will be returned.To perform an asynchronous search, use the
New-AdminAuditLogSearch
cmdlet:New-AdminAuditLogSearch...