Step 1: Load the Exchange Online PowerShell module Microsoft Purview, Use a PowerShell script to search the audit log Connect to Exchange Online PowerShell After you've installed the module, open a PowerShell window and load the module by running the following command: Import-Module ExchangeOnlineManagement Reference: https://learn.microsoft.com/en-us/purview/audit-log-search-script https://learn.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell