Corrado's Blog 2.0

Online thoughts of a technology funatic

How to uniquely identify a Windows 8 device from WinRT

There are some cases where you need to identify a precise Windows 8 device (imagine a subscription that’s locked to a specific machine), in Windows Phone you could use:

Microsoft.Phone.Info.DeviceExtendedProperties.GetValue( "DeviceUniqueId" );

Unfortunately that was not available in WinRT but good new is that capability has been added into final release:

Windows.System.Profile.HardwareIdentification.GetPackageSpecificToken(null);

is all you need to get the identifier tied to a machine.

source: stackoverflow

1 Comment “How to uniquely identify a Windows 8 device from WinRT”

  1. Awesome timing. Believe it or not, I have to do exactly this today, and you completely solved my problem. Thank you.

    Comment by Bill Sempf — 10/08/2012 @ 15:26

RSS feed for comments on this post. TrackBack URL

Leave a Response