Skip to content

Instantly share code, notes, and snippets.

@alexverboon
alexverboon / win10versiondistribution.kql
Created January 26, 2021 23:25
KQL_Windows10versiondistribution
// Windows 10 versions https://docs.microsoft.com/en-us/windows/release-information/
DeviceInfo
| where isnotempty( OSPlatform) and OSPlatform == "Windows10"
| summarize arg_max(Timestamp,*) by DeviceId
| extend Version = case(
OSBuild == "19041","2004",
OSBuild == "19042","20H2",
OSBuild == "18363","1909",
OSBuild == "18362","1903",
OSBuild == "17763","1809",