问题
I am developing a Windows 10 UWP client application which run in company's local network. The application needs to know Windows 10 Device ID to identify each PC that it's installed on. You can see value of Windows 10 Device ID in Settings-About page:
I tried to use EasClientDeviceInformation.Id but its value is different.
How do I do to get Windows 10 Device ID?
回答1:
I think SystemIdentification class is what you are looking for. It doesnot provide device id in settings page. But it is used to uniquely identify the device as suggested in Microsoft Docs.
var systemId = Windows.System.Profile.SystemIdentification.GetSystemIdForPublisher();
Provides information to uniquely identify the system on which the app is running.
https://docs.microsoft.com/en-us/uwp/api/windows.system.profile.systemidentification
来源:https://stackoverflow.com/questions/53701520/how-to-get-windows-10-device-id-in-uwp-application