After connecting to Exchange 2013 or 2016 servers in the Diagnostics Console several instances of errors regarding Get-LogonStatistics PowerShell cmdlet are recorded in the Event log of the Exchange servers
If the connection to the server is kept for along period of time there will be a large number of such instances on the target server.
The expected result is that if there is no need for Cmdlet Get-LogonStatistics, then it should not be executed.
The error is similar to this:
Log Name: Application
Source: MSExchange CmdletLogs
Date: 26/01/2016 11:24:40
Event ID: 6
Task Category: (1)
Level: Error
Keywords: Classic
User: N/A
Computer: EXCHANGESERVERNAME
Description:
The description for Event ID 6 from source MSExchange CmdletLogs cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
Get-LogonStatistics
-Server "EXCHANGESERVERNAME"
HDS.Int/Europe/London/Users/System Accounts/SVC Quest Exchange
Remote-PowerShell-Unknown
12168 w3wp#MSExchangePowerShellFrontEndAppPool
262
00:00:00
View Entire Forest: 'False', Default Scope: 'DOMAINNAME', Configuration Domain Controller: 'DC_NAME', Preferred Global Catalog: 'GC_SERVER_NAME', Preferred Domain Controllers: '{ DC_NAME }'
Microsoft.Exchange.Data.Mapi.Common.MapiOperationException: Cannot find LogonStatistics objects from the root 'XXXXX'. Please make sure that you specified the correct search root and that you have the correct permissions to perform the search. ---> Microsoft.Mapi.MapiExceptionNoSupport: MapiExceptionNoSupport: Unable to get mailbox information. (hr=0x80040102, ec=-2147221246)
Diagnostic context:
Lid: 65256
Lid: 19586
at Microsoft.Mapi.MapiExceptionHelper.InternalThrowIfErrorOrWarning(String message, Int32 hresult, Boolean allowWarnings, Int32 ec, DiagnosticContext diagCtx, Exception innerException)
at Microsoft.Mapi.MapiExceptionHelper.ThrowIfError