Comments on: How to determine version of Windows 10 https://pureinfotech.com/determine-version-windows-10/ Pureinfotech is the best site to get Windows help – featuring friendly how-to guides on Windows 10, Windows 11, Xbox, and other things tech, news, deals, reviews, and more. Fri, 09 Apr 2021 11:42:08 +0000 hourly 1 https://wordpress.org/?v=6.6.2 By: Mauro https://pureinfotech.com/determine-version-windows-10/#comment-4504 Mon, 14 Dec 2015 12:52:00 +0000 http://pureinfotech.com/?p=67324#comment-4504 In reply to postanote.

Thank you for taking the time. Great info. Just tried them on PowerShell and they worked like a charm.

Thanks,
Mauro

]]>
By: postanote https://pureinfotech.com/determine-version-windows-10/#comment-4501 Fri, 11 Dec 2015 21:15:00 +0000 http://pureinfotech.com/?p=67324#comment-4501 # To get major and min info — You are bound to what the public API’s will provide
# Private API stuff, like what you see in WinVer output I have never been able to find
# If only there was a way to pipe winver to a var or text file and problem solved.
# Well there is, but not completely

Get-ItemProperty -Path c:windowssystem32winver.exe | Format-List *

# Though you get all that is there, the way it is displayed in the winver dialog is not really there.
# The closest you get is

(Get-ItemProperty -Path c:windowssystem32winver.exe).VersionInfo | Format-List *

#
# anyway, more API stuff.
# OSVERSIONINFOEX structure
# https://msdn.microsoft.com/en-us/library/windows/desktop/ms724833(v=vs.85).aspx

Get-WmiObject Win32_OperatingSystem | Get-Member

# Or all properties populated using

Get-CimInstance Win32_OperatingSystem | Format-List *

#
# Then you do something like…
#
[Environment]::OSVersion
[System.Environment]::OSVersion.Version
(Get-ItemProperty -Path c:windowssystem32hal.dll).VersionInfo.FileVersion
$OSProperties = @(‘BuildNumber’,’ServicePackMajorVersion’,’ServicePackMinorVersion’,’OSArchitecture’)
ForEach ($OSProperty in $OSProperties)
{
(Get-WmiObject Win32_OperatingSystem).$OSProperty
}

# The above gives you..
[Environment]::OSVersion

Platform ServicePack Version VersionString
——– ———– ——- ————-
Win32NT 6.3.9600.0 Microsoft Windows NT 6.3.9600.0

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

Major Minor Build Revision
—– —– —– ——–
6 3 9600 0

PS C:> (Get-ItemProperty -Path c:windowssystem32hal.dll).VersionInfo.FileVersion

6.3.9600.17196 (winblue_gdr.140601-1505)

PS C:> $OSProperties = @(‘BuildNumber’,’ServicePackMajorVersion’,’ServicePackMinorVersion’,’OSArchitecture’)
ForEach ($OSProperty in $OSProperties)
{
(Get-WmiObject Win32_OperatingSystem).$OSProperty
}

9600
0
0
64-bit

PS C:> (Get-ItemProperty -Path c:windowssystem32winver.exe).VersionInfo | Format-List *
 
FileVersionRaw : 6.3.9600.17415
ProductVersionRaw : 6.3.9600.17415
Comments :
CompanyName : Microsoft Corporation
FileBuildPart : 9600
FileDescription : Version Reporter Applet
FileMajorPart : 6
FileMinorPart : 3
FileName : C:windowssystem32winver.exe
FilePrivatePart : 17415
FileVersion : 6.3.9600.16384 (winblue_rtm.130821-1623)
InternalName : winver
IsDebug : False
IsPatched : False
IsPrivateBuild : False
IsPreRelease : False
IsSpecialBuild : False
Language : English (United States)
LegalCopyright : © Microsoft Corporation. All rights reserved.
LegalTrademarks :
OriginalFilename : WINVER.EXE.MUI
PrivateBuild :
ProductBuildPart : 9600
ProductMajorPart : 6
ProductMinorPart : 3
ProductName : Microsoft® Windows® Operating System
ProductPrivatePart : 17415
ProductVersion : 6.3.9600.16384
SpecialBuild :
#>

 
[Environment]::OSVersion

Platform ServicePack Version VersionString
——– ———– ——- ————-
Win32NT 10.0.10586.0 Microsoft Windows NT 10.0.10586.0

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

Major Minor Build Revision
—– —– —– ——–
10 0 10586 0

PS C:> (Get-ItemProperty -Path c:windowssystem32hal.dll).VersionInfo.FileVersion

10.0.10586.0 (th2_release.151029-1700)

PS C:> $OSProperties = @(‘BuildNumber’,’ServicePackMajorVersion’,’ServicePackMinorVersion’,’OSArchitecture’)
ForEach ($OSProperty in $OSProperties)
{
(Get-WmiObject Win32_OperatingSystem).$OSProperty
}
10586
0
0
64-bit

PS C:> (Get-ItemProperty -Path c:windowssystem32winver.exe).VersionInfo | Format-List *
 
FileVersionRaw : 10.0.10586.0
ProductVersionRaw : 10.0.10586.0
Comments :
CompanyName : Microsoft Corporation
FileBuildPart : 10586
FileDescription : Version Reporter Applet
FileMajorPart : 10
FileMinorPart : 0
FileName : C:windowssystem32winver.exe
FilePrivatePart : 0
FileVersion : 10.0.10586.0 (th2_release.151029-1700)
InternalName : winver
IsDebug : False
IsPatched : False
IsPrivateBuild : False
IsPreRelease : False
IsSpecialBuild : False
Language : English (United States)
LegalCopyright : © Microsoft Corporation. All rights reserved.
LegalTrademarks :
OriginalFilename : WINVER.EXE.MUI
PrivateBuild :
ProductBuildPart : 10586
ProductMajorPart : 10
ProductMinorPart : 0
ProductName : Microsoft® Windows® Operating System
ProductPrivatePart : 0
ProductVersion : 10.0.10586.0
SpecialBuild :
#>

]]>
By: Mauro https://pureinfotech.com/determine-version-windows-10/#comment-4498 Fri, 11 Dec 2015 11:55:00 +0000 http://pureinfotech.com/?p=67324#comment-4498 In reply to postanote.

Awesome, thanks for extras. Anyway to show the full build number, such as 10586.29?

]]>
By: postanote https://pureinfotech.com/determine-version-windows-10/#comment-4497 Thu, 10 Dec 2015 17:22:00 +0000 http://pureinfotech.com/?p=67324#comment-4497 More ways to look at / for this info

# In the Windows PowerShell Console host
# at a cmd prompt – other ways
PowerShell $env:OS
PowerShell Get-WmiObject -class Win32_OperatingSystem
PowerShell Get-CimInstance -ClassName Win32_OperatingSystem

# In the Windows PowerShell environments
# PowerShell.exe – the console host to replace the command prompt
# PowerShell_ISE.exe (Integrated Scripting Environment) graphical
cmd /c Ver
systeminfo | findstr /B /C:”OS Name” /C:”OS Version”
wmic os get version
Winver
$env:OS
Get-WmiObject -class Win32_OperatingSystem
Get-CimInstance -ClassName Win32_OperatingSystem

]]>