I have this issue. Using just command "ver" in batch I get: Microsoft Windows [Version 10.0.18363.900]
I need the last sub-build version (900) for an script to determine if windows is on latest patch level (or close to it, after checking the main build version too) My script works perfect on windows 10, windows 2019 but not in windows 2016, since "ver" will print: Microsoft Windows [Version 10.0.14393]
Without the sub-build version. When checking "WinVer" will print on GUI: Version 1607 (OS Build 14393.3930)
So, in windows 2016 where I can get that "3930" from batch or powershell? WMI, sysinfo, etc wont show that.