Enable or disable mailbox audit logging for a mailbox in Exchange Server

Mark Rocha 21 Reputation points
2022-05-26T17:03:29.33+00:00

Hello, I'm testing the ability to Enable/Disable logging with powershell on my test environment of Office365 using the following reference.

https://learn.microsoft.com/en-us/exchange/policy-and-compliance/mailbox-audit-logging/enable-or-disable?view=exchserver-2019

I am attempting to isolate a user and run the command:
Set-Mailbox -Identity "Ben Smith" -AuditEnabled $false

However, upon running the command I receive and odd response that I'm not familiar with;
"WARNING: The command completed successfully but no settings of 'Ben Smith' have been modified."

I'm assuming that I am not allowed to change the status in an Office 365 demo because of some Security controls, does anyone have information on this?

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Vasil Michev 123.6K Reputation points MVP Volunteer Moderator
    2022-05-26T17:40:51.603+00:00

    Exchange Online has audit logging enabled by default on the org level, as detailed here: https://learn.microsoft.com/en-us/microsoft-365/compliance/enable-mailbox-auditing?view=o365-worldwide
    Thus, the AuditEnabled parameter doesn't really matter. If you need to disable it for a particular mailbox, you create a "bypass" via the Set-MailboxAuditBypassAssociation cmdlet, as explained in the article above.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.