Я использую следующий код для получения DeviceUniqueId в виде отформатированной строки:
/// <summary>
/// Gets the unique identifier for the device.
/// </summary>
/// <returns>A string representation of the unique device identifier.
public static string GetDeviceId()
{
byte[] uniqueId = (byte[])DeviceExtendedProperties.GetValue("DeviceUniqueId");
return BitConverter.ToString(uniqueId);
}
Не уверен, что вы имеете в виду при использовании ActiveSync с устройствами WP7.Если вы дадите мне больше деталей для воспроизведения, я смогу помочь вам в дальнейшем.