Windows Server version not being detected correctly in TCMD 26RC2

Oct 7, 2009
5
0
Just installed the new 26 RC2 on my Window Server Essentials 2019 machine.
It reports
Code:
TCC  26.00.24 x64   Windows Server 2016 [Version 10.0.17763]
TCC Build 24   Windows Server 2016 Build 17763

But this is Windows Server Essentials 2019, 1809, 17663.1098 according to the Windows Settings About
 
Aug 23, 2010
688
9
This is because Microsoft intentionally lies to GetVersion call. :/
 

rconn

Administrator
Staff member
May 14, 2008
12,557
167
This is because Microsoft intentionally lies to GetVersion call. :/

I know; that's not the call that's failing (it's IsWindowsVersionOrGreater).
 
Aug 23, 2010
688
9
I was expecting that, since it clearly states that you can't get a version response greater than what your program manifests.
But I'm not set up to test.
 
Oct 7, 2009
5
0
If you're open to including 3rd party open source in your code, we've used this module for years and it has never had issues and is kept up to date by the author:
DtWinVer v2.40
 
Aug 23, 2010
688
9
Seeing as it is using same "IsWindows***" calls, I think it is prone to the same issues. I.e. not future-proof.
 
May 20, 2008
12,171
133
Syracuse, NY, USA
I'm just curious. Shoek, do you get accurate information from these?

Code:
v:\> wmiquery . "Select Name,Version,BuildNumber from Win32_OperatingSystem"
BuildNumber = 18363
Name = Microsoft Windows 10 Pro for Workstations|C:\WINDOWS|\Device\Harddisk0\Partition3
Version = 10.0.18363

v:\> echo %@regquery["HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId"]
1909
 
Oct 7, 2009
5
0
I'm just curious. Shoek, do you get accurate information from these?

Code:
v:\> wmiquery . "Select Name,Version,BuildNumber from Win32_OperatingSystem"
BuildNumber = 18363
Name = Microsoft Windows 10 Pro for Workstations|C:\WINDOWS|\Device\Harddisk0\Partition3
Version = 10.0.18363

v:\> echo %@regquery["HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId"]
1909

Yes I do:

Code:
BuildNumber = 17763
Name = Microsoft Windows Server 2019 Essentials|C:\WINDOWS|\Device\Harddisk0\Partition3
Version = 10.0.17763

Code:
1809
 

Similar threads