Hi,
I need to identify whether it is windows server 2016 or windows server 2019. Since the os version are same for both i.e 10.0, i used build number to identify between windows server 2016 and 2019.
1. Is below condition sufficient and correct way to identify it?
if(build_number >= 17623 && build_number <= 17763) {
/* windows server 2019 */
}
2. Is build number different for Standard, Datacenter, Enterprise versions? If yes, then will all the build versions for these different versions also fall under the range[17623 - 17763]?