2016B Help File Entry for WinVersion

Started by jtrask, June 27, 2016, 11:10:09 AM

Previous topic - Next topic

jtrask

At the bottom of the entry for WinVersion there's a table and an example (in addition to the actual example).  The table shows that Windows 10 should appear as 2-10-10, while the unofficial example shows 2-10-2.

Also, in my existing scripts, I'm identifying Server 2012 R2 as 2-6-3.  I have no idea if this actually works.  I can only assume that I tested it when I added that to my boilerplate.  Is this valid.  It's not listed in this entry.

td

The WinVersion 5 request returns "2-10-0" for Windows 10.  Windows 8.1 and Windows 2012 R2 have the same versions string which is "2-6-3", just like Windows 8 and Windows 2012 have the same version string, "2-6-2".   All Windows and  Windows server versions built on the same code base return the same version string.   
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

keslaa

Quote from: td on June 27, 2016, 11:41:35 AM
The WinVersion 5 request returns "2-10-0" for Windows 10.  Windows 8.1 and Windows 2012 R2 have the same versions string which is "2-6-3", just like Windows 8 and Windows 2012 have the same version string, "2-6-2".   All Windows and  Windows server versions built on the same code base return the same version string.
We are just now getting into coding for our Citrix environment which has been migrated to Windows 2012 R2. However, we have a handful of Windows 8.1 machines in the mix as well. The apps that will go to Citrix will not be installed on the Windows 8.1 machines. If the WinVersion command returns the same value for both, is there another test I can execute to determine the difference? WinVersion was just a quick and easy way to do this.

td

The reason WinVersion returns the same version numbers for Windows 8.1 and Windows 2012R2 is because they are the same version of Windows.  Please review the Consolidated WIL Help file documentation for the WinVersion function. Pay special attention to level 9.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

keslaa

Quote from: td on March 16, 2017, 06:37:30 AM
The reason WinVersion returns the same version numbers for Windows 8.1 and Windows 2012R2 is because they are the same version of Windows.  Please review the Consolidated WIL Help file documentation for the WinVersion function. Pay special attention to level 9.
That was it. Thank you.