Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Hi Stephen,
I understand that you want to enable auditing for all mailboxes in your organization (user mailboxes, shared mailboxes, room mailboxes and equipment mailboxes). Please refer to the following steps to achieve the goal:
- Connect to Exchange Online PowerShell using an Office 365 administrator account.
- Run the command below:
Get-Mailbox -ResultSize Unlimited -Filter {RecipientType -eq "UserMailbox"} | Set-Mailbox -AuditEnabled $true
To verify that you have successfully enabled mailbox audit logging for all those mailboxes, you can run the following to check it.
Get-Mailbox -ResultSize Unlimited -Filter {RecipientType -eq "UserMailbox"} | FL Name,Audit*
Here is an article for reference: Enable mailbox auditing in Office 365.
Let us know if anything is unclear.
Best Regards,
Aaron