Do you ever wanted to know what is going on behind the curtain when clicking MDM Sync on Windows 10? Gaining insights how the SyncML representation protocol is used during device management of Windows 10 clients? With SyncML Viewer you have the chance to easily get deep insights now. I’ve written a small tool to view the SyncML representation protocol on Windows 10 in real time. In fact this isn’t a special hack, Microsoft provides so called ETW providers which are able to give you all relevant information. There is a great blog post from Michael Niehaus (Want to watch the MDM client activity in real time?), which inspired me to write this small troubleshooting helper tool.
The Message Analyzer approach Michael described felt a bit complicated to setup (choosing provider and setup columns to filter for the relevant events). Despite of the initial setup the approach is great and delivers deep insights, but personally I wanted to have something more simple for troubleshooting. I wanted to be able to start a small tool and getting all protocol information I want in a proper view. Therefore I decided to build my own tool named SyncML Viewer. After quite a bit of research regarding the correct ETW providers to use (special thanks to Matt Graeber for providing detailed ETW provider details here) and suitable layout elements for presentation, I finally have a version 1.0 as community release.
The project is maintained on GitHub here:
Here a direct link to the zip archived program:
SyncML Viewer will show in real time all SyncML xml-based representation protocol information, exchanged between the Windows 10 client and the management system (Intune), in one long stream:
You can easily look through the complete sync session and even search for elements:
The protocol is designed to have session information for one sync action and exchanged messages belonging to that SyncML session. To step through this a bit easier I parse them and provide a specialized view for it on the second tab, which lists individual sessions and exchanged messages belonging to that session:
For protocol analysis it is quite handy to have the status code reference from the official OMA SyncML Representation Protocol documentation available. I’ve added the response status codes and made them easily searchable:
This should give you an easy way to analyse what’s actually going on.
To provide the ability to deliver ongoing updates to the tool, I added a small update functionality which will indicate if there is a new version available and on manual check (Menu Item > Help > Check for SyncML Viewer Update) it will trigger a download and install of the new version:
Viewing the OMA DM protocol and the xml-based SyncML representation helps me to deepen the understanding and check if an actual setting configured in Intune is transferred to the Windows 10 client and actually set.
For example I’ve setup my tenant to automatically convert devices to Autopilot devices with the following setting on the Autopilot profile:
Therefore I would assume that Intune queries the device to gather the hardware hash of the device. If we analyze the SyncML stream we find evidence that Intune is actually doing that:
As seen it is really useful and helps to get better understanding of the MDM Sync and underlying protocols.
Feel free to propose features or enhancements on the GitHub solution.
Happy tracing everyone!