FID MAPPING ACTIVESYNC

Hello, All

Today I would like to give a tip on My Favorite Topic: ActiveSync.

Most of the cases that comes in Activesync today is that my inbox is not getting synched or one of the folder under my inbox is not synching.

Well to identify this first we must identify what is the Folder id of each folder.

The reason being only if the device send in the ping request to monitor the folder the server would send in the updates for changes in the folder.

Most of the time even if an user enables the Activesync log there are minimal chances of the user finding the foldersync command to identifiy the folder ID.

Well one may think i can Sync another device and get the folder id but the catch here is that the Folder id changes per each device.

So how do I obtain the folder ID mapping.

Well the answer is rather easy use the below command in Exchange management shell:

Get-ExchangeDiagnosticInfo -Server <server name> -Process MSExchangeSyncAppPool -Component GetSyncState -Argument "EmailAddress=user@domain.com;DeviceId=<you can obtain this form get-mobile device>;DeviceType=<you can obtain this form get-mobile device>;FidMapping

You should get a result similar to this :

===========================

RunspaceId :

Result     : <Diagnostics>

<ProcessInfo>

<id>33384</id>

<serverName></serverName>

<startTime>2015-12-23T09:30:00.3149733Z</startTime>

<currentTime>2015-12-23T15:45:47.9874851Z</currentTime>

<lifetime>06:15:47.6725118</lifetime>

<threadCount>218</threadCount>

<handleCount>3651</handleCount>

<workingSet>482.6 MB (506,040,320 bytes)</workingSet>

</ProcessInfo>

<Components>

<GetSyncState>

<GetSyncStateResult xmlns:xsd="https://www.w3.org/2001/XMLSchema"

xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" LoggingEnabled="true">

<Devices>

<DeviceData Name="" Created="0001-01-01T00:00:00">

<SyncFolders>

<SyncStateFolderData>

<Name>FolderIdMapping</Name>

<Created>2015-10-21T03:12:44.3953904Z</Created>

<StorageType>Item</StorageType>

<SyncStateBlob></SyncStateBlob>

<SyncStateSize>899</SyncStateSize>

<FolderMapping>

<FolderMappingData Name="Calendar" FolderType="Calendar">

<ShortId>1</ShortId>

<LongId>LgAAAAD7lNExwzLWEZ2nAFCLXgP6AQAqZ5ZBIg2SRLPtKOkIwHueAAAGT6FUAAAC</LongId>

</FolderMappingData>

<FolderMappingData Name="Contacts" FolderType="Contacts">

<ShortId>2</ShortId>

<LongId>LgAAAAD7lNExwzLWEZ2nAFCLXgP6AQCX0BrnLMbTEZ16AFCLXgP6AAANxX3OAAAD</LongId>

</FolderMappingData>

<FolderMappingData Name="Skype for Business Contacts" FolderType="QuickContacts">

<ShortId>3</ShortId>

<LongId>LgAAAAD7lNExwzLWEZ2nAFCLXgP6AQCa6kLRujFPTKY7VGbz87FDAACwW3vvAAAD</LongId>

</FolderMappingData>

<FolderMappingData Name="Conversation History" FolderType="CommunicatorHistory">

<ShortId>4</ShortId>

<LongId>LgAAAAD7lNExwzLWEZ2nAFCLXgP6AQC3BHhAl8lzTKF9MsSL0htpAAA4jgAWAAAB</LongId>

</FolderMappingData>

<FolderMappingData Name="Deleted Items" FolderType="DeletedItems">

<ShortId>5</ShortId>

<LongId>LgAAAAD7lNExwzLWEZ2nAFCLXgP6AQCX0BrnLMbTEZ16AFCLXgP6AAANvsopAAAB</LongId>

FolderMappingData Name="Drafts" FolderType="Drafts">

<ShortId>7</ShortId>

<LongId>LgAAAAD7lNExwzLWEZ2nAFCLXgP6AQCX0BrnLMbTEZ16AFCLXgP6AAANxX3TAAAB</LongId>

</FolderMappingData>

<FolderMappingData Name="Inbox" FolderType="Inbox">

<ShortId>8</ShortId>

</FolderMappingData>

</FolderMapping>

</SyncStateFolderData>

</SyncFolders>

</DeviceData>

</Devices>

</GetSyncStateResult>

</GetSyncState>

</Components>

</Diagnostics>

Identity   :

IsValid     : True

ObjectState : New

==========================

Feel free to post your comments.

AC