I'm noticing when I run a command to check the Windows version in the registry that it shows Windows 10, despite me using Windows 11 (both 24h2 and 25h2). Is this something that's expected? Both versions are recognized as Windows 11 Enterprise, so I'm confused about why the registry key displays Windows 10. Any insights?
3 Answers
You can confirm you're on Windows 11 by checking the build number. If it's above 22000, you're on Windows 11. Just ignore other registry values.
Totally expected! The "ProductName" entry might still say Windows 10 even if you're using Windows 11. To accurately identify your version, the build number is what you should rely on. You can run this script to get the correct info: `$cv = Get-ItemProperty "HKLM:SOFTWAREMicrosoftWindows NTCurrentVersion"`; `$build = [int]$cv.CurrentBuild`; `$edition = $cv.EditionID`; `if ($build -ge 22000) { $os = "Windows 11 $edition" } else { $os = "Windows 10 $edition" }`. This way, you'll know for sure!
This is pretty common. Windows 11 is built on a version of Windows 10, so some registry keys might still refer to it. This helps maintain compatibility with older software that checks for Windows 10. There isn't any official word from Microsoft, but it seems to be typical behavior.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures