Exchange ActiveSync Mailbox Logging

Enable ActiveSync logging on a mailbox:
Set-CASMailbox alias -ActiveSyncDebugLogging:$true
Retrieve ActiveSync Logging:
Via email:
Get-ActiveSyncDeviceStatistics -Mailbox alias -GetMailboxLog:$true -NotificationEmailAddress yourEmailAddress@contoso.com
 
Via a Text Files for each device:
*Run the below from an account that is not mail enabled if you wish to receive no email*
Get-ActiveSyncDeviceStatistics -Mailbox alias -GetMailboxLog:$true | Where {$_.DeviceID -like "ApplXXXXXXXXXXXX"} | Export-CSV\\Server\Share\filename.txt
 
 Verify if ActiveSyncDebugLogging is enabled:
Get-CASMailbox alias -ActiveSyncDebugLogging | Select ActiveSyncDebugLogging