Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Check, enable and disable Tenant level mailbox auditing in Exchange Online
# Get Auditing Status
Get-OrganizationConfig | Select AuditDisabled
# Disable Auditing for Tenant
Set-OrganizationConfig -AuditDisabled $True
# Disable Auditing for User
Set-MailboxAuditBypassAssociation -Identity $User -AuditBypassEnabled $True
# Find Mailboxes with Audting Disabled
Get-MailboxAuditBypassAssociation | ? {$_.AuditBypassEnabled -eq $True} | Format-Table Name, WhenCreated, AuditBypassEnabled
# Disable Audting bypass for a single mailbox
Set-MailboxAuditBypassAssociation -Identity $User -AuditBypassEnabled $False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.