4

Why is it that I see 2 different versions of my OS from PowerShell and PowerShell ISE?

The OS: Microsoft Windows Server 2012 R2 Datacenter Evaluation

PowerShell: version 4.0

PowerShell

PS C:\> [System.Environment]::OSVersion.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
6      3      9600   0

PowerShell ISE

PS C:\> [System.Environment]::OSVersion.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
6      2      9200   0       
1

In Windows 8.1 / Server 2012 the GetVersionEx return the data for Windows 8 (6.2 Build 9200) if the application doesn't contain the supportedOS Id for Windows 8.1.

Looks like the GUI doesn't include this entry.

  • Windows Server 2012 is 6.2 version too. Build ? – Kiquenet Jan 8 '15 at 10:07
  • @Kiquenet yes, 2012 = 6.2 and 2012R2 = 6.3 – magicandre1981 Jan 8 '15 at 17:13
  • How difference Windows Server 2012 and Windows 8 and How difference Windows Server 2012 R2 and Windows 8.1 ? – Kiquenet Jan 8 '15 at 21:03
  • @Kiquenet which programming language do you use? – magicandre1981 Jan 9 '15 at 5:33
  • C# .NET and Powershell – Kiquenet Jan 9 '15 at 7:01

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.