viewpoint-particle

Author Topic: 2016B Help File Entry for WinVersion  (Read 1527 times)

jtrask

  • Jr. Member
  • **
  • Posts: 68
2016B Help File Entry for WinVersion
« on: June 27, 2016, 11:10:09 am »
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

  • Tech Support
  • *****
  • Posts: 2137
    • WinBatch
Re: 2016B Help File Entry for WinVersion
« Reply #1 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.   
"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
  - Bill Gates


keslaa

  • Newbie
  • *
  • Posts: 37
Re: 2016B Help File Entry for WinVersion
« Reply #2 on: March 16, 2017, 05:35:49 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

  • Tech Support
  • *****
  • Posts: 2137
    • WinBatch
Re: 2016B Help File Entry for WinVersion
« Reply #3 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.
"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
  - Bill Gates


keslaa

  • Newbie
  • *
  • Posts: 37
Re: 2016B Help File Entry for WinVersion
« Reply #4 on: March 17, 2017, 06:37:37 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.