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 Answer 1

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.

6
  • Windows Server 2012 is 6.2 version too. Build ?
    – Kiquenet
    Jan 8, 2015 at 10:07
  • @Kiquenet yes, 2012 = 6.2 and 2012R2 = 6.3 Jan 8, 2015 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, 2015 at 21:03
  • @Kiquenet which programming language do you use? Jan 9, 2015 at 5:33
  • C# .NET and Powershell
    – Kiquenet
    Jan 9, 2015 at 7:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .