Audit log is turned on

Marc 631 Reputation points
2021-12-16T11:20:14.283+00:00

To verify that audit log search is turned on, I have to run the following command in Exchange Online PowerShell:

Get-AdminAuditLogConfig | FL UnifiedAuditLogIngestionEnabled

To connect to the Module ExchangeOnlineManagement I have run the command below:

      Install-Module -Name ExchangeOnlineManagement  
      set-executionpolicy remotesigned -Scope CurrentUser -force  
      Connect-IPPSSession -ConnectionUri https://ps.protection.outlook.com/powershell-liveid/  

Once connected I have tried with:

    Get-AdminAuditLogConfig | FL UnifiedAuditLogIngestionEnabled  

but I am receiving the error :

158252-auditlog.png

Exchange Exchange Server Management
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2021-12-16T12:10:59.557+00:00

    You are connecting to the wrong place. Connect-IPPSSession is for the Security and Compliance Center cmdlets, not Exchange Online. Use Connect-ExchangeOnline instead: https://learn.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps


0 additional answers

Sort by: Most helpful

Your answer

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