Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Windows Server version not being detected correctly in TCMD 26RC2

Oct
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
 
This is because Microsoft intentionally lies to GetVersion call. :/
 
This is because Microsoft intentionally lies to GetVersion call. :/

I know; that's not the call that's failing (it's IsWindowsVersionOrGreater).
 
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.
 
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
 
Seeing as it is using same "IsWindows***" calls, I think it is prone to the same issues. I.e. not future-proof.
 
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
 
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

Back
Top