There are several ways to find these, GUI, systeminfo.exe, wmi, etc.
With no service packs around any more, the patch-level on the OS depends on the installed updates. If you prefer the GUI, you can use winver.exe or the About entry in the Help menu of most Windows desktop applications. (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name CurrentBuild).CurrentBuild (Get-CimInstance -ClassName Win32_OperatingSystem -Namespace root/cimv2).BuildNumber There are several ways to get the build number on the command line: systeminfo.exe The latest insiders build has a build number of 10525 compared to "RTM": 10240. It turns out that first sentence is wrong it was true in all previous versions of Windows, but we are in a new Windows 10 world now. $WinVer | Add-Member -MemberType NoteProperty -Name Revision -Value $(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' UBR).UBRĬhecking the version or the build number of Windows 10 is not very helpful because it doesn't change over time. $WinVer | Add-Member -MemberType NoteProperty -Name Build -Value $(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' CurrentBuild).CurrentBuild $WinVer | Add-Member -MemberType NoteProperty -Name Minor -Value $(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' CurrentMinorVersionNumber).CurrentMinorVersionNumber $WinVer | Add-Member -MemberType NoteProperty -Name Major -Value $(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' CurrentMajorVersionNumber).CurrentMajorVersionNumber
SERIAL DE WINDOWS 10 PROF BUILD 10525 CODE
A bit of code from a Reddit user provides an adequate replacement that includes the UBR from the registry as the Revision number: $WinVer = New-Object -TypeName PSObject Returns Major, Minor, and Build the same as the registry key, but it always seems to report Revision as 0. However, the UBR (Update Build Revision) does change with certain updates as indicated in Microsoft's release list. The build changes when the Version (like 1607) changes or when Insider builds are installed. The following values in that key correspond to the information displayed by the winver.exe program: ReleaseID = Version (name based on year/month of release: 1507, 1511, 1607, 1703, etc.)ĬurrentBuild or CurrentBuildNumber = OS Build (part before period)Īdditionally, the version numbers are in these two values from that registry key: CurrentMajorVersionNumber = 10 As stated in other comments, this information is visible in the registry under this key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
SERIAL DE WINDOWS 10 PROF BUILD 10525 FULL
WMI does not currently have properties that can be used to completely identify the Windows 10 version (like 1607) or full build number (like 3.577).