Professional Documents
Culture Documents
Microsoft Confidential
This training package is proprietary and confidential, and is intended only for uses described in the training materials. Content and software is provided to you under
a Non-Disclosure Agreement and cannot be distributed. Copying or disclosing all or any portion of the content and/or software included in such packages is strictly
prohibited.
The contents of this package are for informational and training purposes only and are provided "as is" without warranty of any kind, whether express or implied,
including but not limited to the implied warranties of merchantability, fitness for a particular purpose, and non-infringement.
Training package content, including URLs and other Internet website references, is subject to change without notice. Because Microsoft must respond to changing
market conditions, the content should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any
information presented after the date of publication. Unless otherwise noted, the companies, organizations, products, domain names, e-mail addresses, logos,
people, places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo,
person, place, or event is intended or should be inferred.
UPN match
RCA results primary
identify SMTP?
failure? Mailbox
7-8 Policy test
1-5
7-10 Maybe the issue is 6
related to connectivity?
Finding the right server
Exchange 2013/2016/2019 begin at the Mailbox server where the mailbox is located
• Browse to https://mail.contoso.com/Microsoft-Server-ActiveSync/HealthCheck.htm
• Returns the CAS FQDN and HTTP status code indicating health
• This shows the entry point for the client connection and can be used to retrieve HttpProxy and IIS
logs
Finding the right server
PowerShell log search
• Be sure to flush the logs to ensure latest request is written from memory and can be searched
• Make sure to use the logs from the correct directory, W3SVC1 for front end, W3SVC2 for backend
Accurate
Fast
Response:
-AdminMailRecipients
35
Mailbox
Get-CASMailbox
• ActiveSyncEnabled
• ActiveSyncBlockedDeviceIDs
• ActiveSyncAllowedDeviceIDs
Get-MobileDeviceStatistics
• DevicePolicyApplied
• DevicePolicyAppliedStatus
Global
Get-ActiveSyncDeviceAccessRule
• QueryString
• Characteristic
• AccessLevel
Get-ActiveSyncOrganizationSettings
• DefaultAccessLevel
Example
Explanation: Allowed 300 commands per 5 minutes. If hit, block for 2 minutes and send an email to the user’s mailbox with
the custom explanation.
• Requests are not instantaneously logged
• The date-time is in GMT
• The timestamp of the logs and when logs roll can vary
• Logs can get very large (over 1GB per day per server is common)
• Exchange 2013 and 2016 have IIS logs for two web sites (Default Web Site and Exchange Backend
Site)
• Know you status codes http://support2.microsoft.com/default.aspx?scid=kb;EN-US;943891
Status code Description Caveats
200 OK Does not indicate EAS command success
1.
2.
3.
4.
Common Status codes for all commands [status code value > 100]
https://msdn.microsoft.com/en-us/library/ee218647(v=EXCHG.80).aspx
At the bottom portion of the page
Commands specific status codes
https://msdn.microsoft.com/en-us/library/ee218647(v=EXCHG.80).aspx
Find the status element section link
How to translate CollectionIds to Mailbox folder names
• If the Activesync mailbox logs capture an initial FolderSync response, the ServerId to folder
names will be represented, where ServerId = CollectionId in sync messages.
• There is a method using MFCMAPI for on prem mailboxes
• There is an EWS script that translates both on prem and Exchange Online
• Using the Get-ExchangeDiagnosticInformation command on prem with the correct parameters
• Alphabetically can guestimate the mappings especially when no new folders have been added
to the default starting folders. For example, Calendar is typically first alphabetically in the folder
list, so its CollectionId is frequently = 1.
http://exrca.com
• With EASInspector addin, full
verbose SOAP
• This means subject, attendees
searchable
• Good for troubleshooting
individual device issues, including
performance
• Keep in mind, Ping and Empty
Sync requests will have expectedly
long server think times
https://technet.microsoft.com/en-
us/library/dd638102(v=exchg.160).aspx
https://technet.microsoft.com/en-
us/library/jj552406(v=exchg.160).aspx
Calendar Diagnostic Logs
1. Available when Calendar version store is enabled
Get-mailbox alias | fl *calendar*
Mailbox
Meeting requests Calendar Version Store
sent or received
Deletions
T=15: If l receive
mail in the next 8
min. let me know.
Otherwise, return OK
<MIMETruncation>1</MIMETruncation>
Microsoft Confidential 76
Sync – Sample Response
Microsoft Confidential 77
SyncKey = 10000002
<ApplicationData />
SyncKey = 10000003
<ApplicationData />