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       
slybloty
  • 495
  • 3
  • 9
  • 24

1 Answers1

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.

magicandre1981
  • 97,301
  • 30
  • 179
  • 245