Forum Discussion
Windows Server 2019 version info
Hi Mike
I have the same issue how would you determine the standard release version using Microsoft Docs . Currently we are using OSVersionInfoex to determine the windows server and now what I am trying to is if we first determine the major and minor version if the major version is 10 and minor version is 0 and osvi.wProductType != VER_NT_WORKSTATION and then if osvi.dwBuildNumber >= 17633 then we are going determine that as windows 2019 else it would be windows 2016 will that work ?. Your response would be highly appreciated
To determine if Server 2016 or Server 2019 is present, I read the Windows Registry key that Mary Hoffman suggested back on 08-22-2018. As for using the Build Number, Mary would need to confirm if this would work as well.
Hope this helps!
- Mary HoffmanNov 27, 2018Microsoft
The ReleaseID value for Server 2016 was 1607. For Server 2019, it was 1809. Having said that, this early in the preview cycle for VNext, the ReleaseID located at hklm:\software\microsoft\windows\windows NT\CurrentVersion" -Name ReleaseID has not yet been updated for vNext and previews will still have the value "1809". The final build of Windows Server 2019 was 17763. For now, it is safe to assume that any major build number greater than 17763 is a preview for vNext.
- ThomasBNov 27, 2018Copper Contributor
But is it safe to assume any build number greater than 17633 that is not VER_NT_WORKSTATION is server 2019?
- Mary HoffmanNov 27, 2018Microsoft
Windows Server 2019 stops at 17763. That was the final major build number.
Anything higher than that (>=17764) will be vNext builds.