I am having a problem with the Get-EXOMailboxStatistics command. It is working intermittently. I run
Get-EXOMailboxStatistics -Identity $MB.ExchangeGuid -Archive
and get output. If I run the same command again I get:
Get-EXOMailboxStatistics -identity $MB.ExchangeGuid -Archive
Get-EXOMailboxStatistics : An error occurred while processing this request..
At line:1 char:1
+ Get-EXOMailboxStatistics -identity $MB.ExchangeGuid -Archive
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ProtocolError: (:) [Get-EXOMailboxStatistics], Exception
+ FullyQualifiedErrorId : One or more errors occurred.,Microsoft.Exchange.Management.RestApiClient.GetExoMailboxStatistics