App doesn't return the same PublisherDeviceID when installed from Windows Store


  • Hi,

    I am trying to link an application that has been published to the Windows Store to a device that has registered via MDM enrollment. I am currently retrieving the DeviceUniqueId after the device is MDM enrolled from following CSP:

    ./Vendor/MSFT/DMClient/Provider/<Provider ID>/PublisherDeviceID

    On the device, I use the following API calls to get the same:

    BitConverter.ToString((byte[])DeviceExtendedProperties.GetValue("DeviceUniqueId")).Replace("-", string.Empty);

    This seems to work when the app is installed by MDM. When the app is downloaded from the store, the string returned by the code above differs from the PublisherDeviceID from enrolled device.

    Is this the right way of doing it? Also, what is a valid <Provider ID>? Is this something that I can get from my dev account?



    Saturday, September 5, 2015 2:30 PM