Getting the human readable Windows 10 version from the registry (via Super User)
Posted by jpluimers on 2023/05/15
[Wayback/Archive] powershell – How to get the windows version with command line? – Super User (thanks [Wayback/Archive] harrymc!)
The value can be found under registry keyComputer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
inside the value namedDisplayVersion
.The following PowerShell command will get it:(Get-Item "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion").GetValue('DisplayVersion')
This seems to have been introduced in version 2004 (20H1).
–jeroen
Leave a Reply