Skip to content

Instantly share code, notes, and snippets.

View SteveL-MSFT's full-sized avatar

Steve Lee SteveL-MSFT

View GitHub Profile
<#
AnalyticsInfo class is the documented way to track OS version. It returns
a string value. The format of this string is not documented, and one should
not rely on a certain value. Those values can only be used to tell one OS
version from another.
https://docs.microsoft.com/uwp/api
/windows.system.profile.analyticsversioninfo.devicefamilyversion
This API is not available on Server Core