Account Security Problems

How to Generate an Exchange Mailbox Non-Owner Access Report via PowerShell

Nimra MalikNimra Malik Nov 2, 2026 869 views

Question details

The user needs to identify administrators and delegates who have accessed specific user mailboxes in Exchange.

How to Generate an Exchange Mailbox Non-Owner Access Report via PowerShell
Product
Exchange Server / PowerShell
Device & OS
not provided
Scenario
Tracking non-owner access to user mailboxes for security, compliance, and auditing purposes.
Observed behavior
Requires a detailed report of mailbox access by non-owners exported to a manageable format like CSV.
Before you start

Ensure that mailbox audit logging is enabled for the target mailboxes, and that your account has the appropriate Exchange administrator permissions to execute audit log searches.

Solution 1Recommended

Use the Search-MailboxAuditLog Cmdlet to Export an Access Report

Run a specific PowerShell script using Search-MailboxAuditLog to track non-owner mailbox access events and export them directly to a CSV file.

The Search-MailboxAuditLog cmdlet is the primary tool for administrators to search mailbox audit logs synchronously. By specifying logon types such as Admin or Delegate, you can accurately filter out the mailbox owner's activities and isolate non-owner access events.

1
Open Exchange Management Shell

Launch the Exchange Management Shell (EMS) on your Exchange Server or connect to Exchange Online PowerShell with global administrator privileges.

2
Configure the Date Range

Use the -StartDate and -EndDate parameters to specify the exact timeframe you want to audit. Use the format 'YYYY-MM-DD'.

3
Specify Logon Types and Output

Add the -LogonTypes @('Admin', 'Delegate') parameter to filter for non-owners, and set -ShowDetails:$true to ensure comprehensive event data is retrieved.

4
Export Results to CSV

Append the pipeline operator followed by Export-Csv -Path <file-path> to save the audit log data to a local CSV file for review.

Use the Search-MailboxAuditLog Cmdlet to Export an Access Report
Example PowerShell Command: Search-MailboxAuditLog -StartDate '2020-10-14' -EndDate '2020-10-24' -LogonTypes @('Admin', 'Delegate') -ExternalAccess:$false -ShowDetails:$true -ResultSize 20000 | Export-Csv -Path C:\AuditReport.csv
Free Microsoft Office alternative

Analyze Your CSV Audit Reports with WPS Office

While PowerShell generates the raw Exchange audit logs, WPS Spreadsheet provides a fast, lightweight, and fully compatible environment to filter, pivot, and analyze your exported CSV data without needing an expensive Microsoft Office license.

  1. 1. Launch WPS Spreadsheet: Open WPS Office and select 'Spreadsheet' from the main workspace interface.
  2. 2. Open the CSV Audit Report: Click 'Menu' > 'Open' and locate the CSV file you exported from your PowerShell session.
  3. 3. Format and Analyze Data: Highlight the data columns and use the 'Data' tab to apply 'AutoFilter' or insert a 'PivotTable' to easily track specific delegate activities.
Free, lightweight, and fast installation processFully compatible with Microsoft Excel CSV and XLSX formatsAdvanced data filtering and pivot tables for deep audit log analysisFamiliar user interface ensuring a seamless migration and zero learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why is the Search-MailboxAuditLog command returning no results?

Mailbox audit logging may be disabled for the targeted mailboxes. In older versions of Exchange, you must manually enable it by running Set-Mailbox -Identity <Mailbox> -AuditEnabled $true before it begins tracking access events.

Can I search for non-owner access on one specific user's mailbox?

Yes. Add the -Identity parameter followed by the mailbox address or alias (e.g., -Identity 'user@domain.com') to restrict the audit log search to that single mailbox rather than searching the entire organization.

How long are mailbox audit logs kept in Exchange?

By default, mailbox audit log entries are retained for 90 days. You can modify this retention duration using the AuditLogAgeLimit parameter in the Set-Mailbox cmdlet.

What is the difference between Admin and Delegate logon types?

The 'Admin' logon type logs actions taken by users using eDiscovery or administrative tools, while 'Delegate' logs actions by users who have been granted explicit permissions (like Send As or Full Access) to another user's mailbox.