Skip to content

Instantly share code, notes, and snippets.

@bklockwood
Last active March 5, 2016 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bklockwood/6aff85c81b684398bdbf to your computer and use it in GitHub Desktop.
Save bklockwood/6aff85c81b684398bdbf to your computer and use it in GitHub Desktop.
Version numbers in Win10 via PS
When WINVER says "Version 1511 (OS Build 10586.104)" ...
PS> (Get-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion').ProductName
Windows 10 Pro
PS> (Get-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion').ReleaseID
1511
PS> (Get-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion').CurrentVersion
6.3
PS> (Get-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion').CurrentBuild
10586
PS> (Get-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion').BuildLab
10586.th2_release.160126-1819
PS> (Get-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion').BuildLabEx
10586.103.amd64fre.th2_release.160126-1819
---WMI---
PS> (gwmi win32_operatingsystem).name
Microsoft Windows 10 Pro|C:\WINDOWS|\Device\Harddisk0\Partition4
PS> (gwmi Win32_WMISetting).BuildVersion
10586.0
PS> (gwmi win32_operatingsystem).Version
10.0.10586
PS> [System.Environment]::OSVersion.Version
Major Minor Build Revision
----- ----- ----- --------
10 0 10586 0
@bklockwood
Copy link
Author

We need a SPOT (single point of truth)

We also need clear direction from MS. Which version should we all be talking about? 1511, or 10586.104? How do they inter-relate? Specifics please!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment