Skip to main content

Enable Unified Auditing

Enable Auditing

  1. Connect to Exchange Online.
    1. Import-Module ExchangeOnlineManagment
    2. Connect-ExchangeOnline -UserPrincipalName your-email-or-username
  2. Enable Auditing
    1. Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $true

Disable Auditing

  1. Connect to Exchange Online.
    1. Import-Module ExchangeOnlineManagment
    2. Connect-ExchangeOnline -UserPrincipalName your-email-or-username
  2. Enable Auditing
    1. Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $false

Resources